1 // This file was automatically generated by protocompiler
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, AWDIPMonitorInterfaceType
) {
19 AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_OTHER
= 0,
20 AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIFI
= 1,
21 AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_CELLULAR
= 2,
22 AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIRED
= 3,
25 NS_INLINE NSString
*AWDIPMonitorInterfaceTypeAsString(AWDIPMonitorInterfaceType value
)
29 case AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_OTHER
: return @
"IPMONITOR_INTERFACE_TYPE_OTHER";
30 case AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIFI
: return @
"IPMONITOR_INTERFACE_TYPE_WIFI";
31 case AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_CELLULAR
: return @
"IPMONITOR_INTERFACE_TYPE_CELLULAR";
32 case AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIRED
: return @
"IPMONITOR_INTERFACE_TYPE_WIRED";
33 default: return [NSString stringWithFormat
:@
"(unknown: %i)", value
];
38 NS_INLINE AWDIPMonitorInterfaceType
StringAsAWDIPMonitorInterfaceType(NSString
*value
)
40 if ([value isEqualToString
:@
"IPMONITOR_INTERFACE_TYPE_OTHER"]) return AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_OTHER
;
41 if ([value isEqualToString
:@
"IPMONITOR_INTERFACE_TYPE_WIFI"]) return AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIFI
;
42 if ([value isEqualToString
:@
"IPMONITOR_INTERFACE_TYPE_CELLULAR"]) return AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_CELLULAR
;
43 if ([value isEqualToString
:@
"IPMONITOR_INTERFACE_TYPE_WIRED"]) return AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIRED
;
44 return AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_OTHER
;