blob: 72c19a8f59c82248a05c6ee46990910c069d2381 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
// SDLAppInterfaceUnregisteredReason.m
//
#import "SDLAppInterfaceUnregisteredReason.h"
SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_IGNITION_OFF = nil;
SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF = nil;
SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED = nil;
SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL = nil;
SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS = nil;
SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION = nil;
SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE = nil;
SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_MASTER_RESET = nil;
SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS = nil;
SDLAppInterfaceUnregisteredReason *SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED = nil;
NSArray *SDLAppInterfaceUnregisteredReason_values = nil;
@implementation SDLAppInterfaceUnregisteredReason
+ (SDLAppInterfaceUnregisteredReason *)valueOf:(NSString *)value {
for (SDLAppInterfaceUnregisteredReason *item in SDLAppInterfaceUnregisteredReason.values) {
if ([item.value isEqualToString:value]) {
return item;
}
}
return nil;
}
+ (NSArray *)values {
if (SDLAppInterfaceUnregisteredReason_values == nil) {
SDLAppInterfaceUnregisteredReason_values = @[
SDLAppInterfaceUnregisteredReason.IGNITION_OFF,
SDLAppInterfaceUnregisteredReason.BLUETOOTH_OFF,
SDLAppInterfaceUnregisteredReason.USB_DISCONNECTED,
SDLAppInterfaceUnregisteredReason.REQUEST_WHILE_IN_NONE_HMI_LEVEL,
SDLAppInterfaceUnregisteredReason.TOO_MANY_REQUESTS,
SDLAppInterfaceUnregisteredReason.DRIVER_DISTRACTION_VIOLATION,
SDLAppInterfaceUnregisteredReason.LANGUAGE_CHANGE,
SDLAppInterfaceUnregisteredReason.MASTER_RESET,
SDLAppInterfaceUnregisteredReason.FACTORY_DEFAULTS,
SDLAppInterfaceUnregisteredReason.APP_UNAUTHORIZED,
];
}
return SDLAppInterfaceUnregisteredReason_values;
}
+ (SDLAppInterfaceUnregisteredReason *)IGNITION_OFF {
if (SDLAppInterfaceUnregisteredReason_IGNITION_OFF == nil) {
SDLAppInterfaceUnregisteredReason_IGNITION_OFF = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"IGNITION_OFF"];
}
return SDLAppInterfaceUnregisteredReason_IGNITION_OFF;
}
+ (SDLAppInterfaceUnregisteredReason *)BLUETOOTH_OFF {
if (SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF == nil) {
SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"BLUETOOTH_OFF"];
}
return SDLAppInterfaceUnregisteredReason_BLUETOOTH_OFF;
}
+ (SDLAppInterfaceUnregisteredReason *)USB_DISCONNECTED {
if (SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED == nil) {
SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"USB_DISCONNECTED"];
}
return SDLAppInterfaceUnregisteredReason_USB_DISCONNECTED;
}
+ (SDLAppInterfaceUnregisteredReason *)REQUEST_WHILE_IN_NONE_HMI_LEVEL {
if (SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL == nil) {
SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"REQUEST_WHILE_IN_NONE_HMI_LEVEL"];
}
return SDLAppInterfaceUnregisteredReason_REQUEST_WHILE_IN_NONE_HMI_LEVEL;
}
+ (SDLAppInterfaceUnregisteredReason *)TOO_MANY_REQUESTS {
if (SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS == nil) {
SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"TOO_MANY_REQUESTS"];
}
return SDLAppInterfaceUnregisteredReason_TOO_MANY_REQUESTS;
}
+ (SDLAppInterfaceUnregisteredReason *)DRIVER_DISTRACTION_VIOLATION {
if (SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION == nil) {
SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"DRIVER_DISTRACTION_VIOLATION"];
}
return SDLAppInterfaceUnregisteredReason_DRIVER_DISTRACTION_VIOLATION;
}
+ (SDLAppInterfaceUnregisteredReason *)LANGUAGE_CHANGE {
if (SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE == nil) {
SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"LANGUAGE_CHANGE"];
}
return SDLAppInterfaceUnregisteredReason_LANGUAGE_CHANGE;
}
+ (SDLAppInterfaceUnregisteredReason *)MASTER_RESET {
if (SDLAppInterfaceUnregisteredReason_MASTER_RESET == nil) {
SDLAppInterfaceUnregisteredReason_MASTER_RESET = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"MASTER_RESET"];
}
return SDLAppInterfaceUnregisteredReason_MASTER_RESET;
}
+ (SDLAppInterfaceUnregisteredReason *)FACTORY_DEFAULTS {
if (SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS == nil) {
SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"FACTORY_DEFAULTS"];
}
return SDLAppInterfaceUnregisteredReason_FACTORY_DEFAULTS;
}
+ (SDLAppInterfaceUnregisteredReason *)APP_UNAUTHORIZED {
if (SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED == nil) {
SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED = [[SDLAppInterfaceUnregisteredReason alloc] initWithValue:@"APP_UNAUTHORIZED"];
}
return SDLAppInterfaceUnregisteredReason_APP_UNAUTHORIZED;
}
@end
|