1 // This file was automatically generated by protocompiler
3 // Compiled from OTPairingMessage.proto
7 #include <Foundation/Foundation.h>
11 #if (__cplusplus && __cplusplus >= 201103L && (__has_extension(cxx_strong_enums) || __has_feature(objc_fixed_enum))) || (!__cplusplus && __has_feature(objc_fixed_enum))
12 #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
14 #define NS_ENUM(_type, _name) _type _name; enum
16 #endif // !defined(NS_ENUM)
18 typedef NS_ENUM(int32_t, OTSupportType
) {
19 OTSupportType_unknown
= 0,
20 OTSupportType_supported
= 1,
21 OTSupportType_not_supported
= 2,
24 NS_INLINE NSString
*OTSupportTypeAsString(OTSupportType value
)
28 case OTSupportType_unknown
: return @
"unknown";
29 case OTSupportType_supported
: return @
"supported";
30 case OTSupportType_not_supported
: return @
"not_supported";
31 default: return [NSString stringWithFormat
:@
"(unknown: %i)", value
];
36 NS_INLINE OTSupportType
StringAsOTSupportType(NSString
*value
)
38 if ([value isEqualToString
:@
"unknown"]) return OTSupportType_unknown
;
39 if ([value isEqualToString
:@
"supported"]) return OTSupportType_supported
;
40 if ([value isEqualToString
:@
"not_supported"]) return OTSupportType_not_supported
;
41 return OTSupportType_unknown
;