blob: 216c4783db5e2573eff716802507d683c6ed4cf1 (
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
|
// SDLOnAppInterfaceUnregistered.m
//
#import "SDLOnAppInterfaceUnregistered.h"
#import "SDLAppInterfaceUnregisteredReason.h"
@implementation SDLOnAppInterfaceUnregistered
- (instancetype)init {
if (self = [super initWithName:SDLNameOnAppInterfaceUnregistered]) {
}
return self;
}
- (instancetype)initWithDictionary:(NSMutableDictionary *)dict {
if (self = [super initWithDictionary:dict]) {
}
return self;
}
- (void)setReason:(SDLAppInterfaceUnregisteredReason *)reason {
if (reason != nil) {
[parameters setObject:reason forKey:SDLNameReason];
} else {
[parameters removeObjectForKey:SDLNameReason];
}
}
- (SDLAppInterfaceUnregisteredReason *)reason {
NSObject *obj = [parameters objectForKey:SDLNameReason];
if (obj == nil || [obj isKindOfClass:SDLAppInterfaceUnregisteredReason.class]) {
return (SDLAppInterfaceUnregisteredReason *)obj;
} else {
return [SDLAppInterfaceUnregisteredReason valueOf:(NSString *)obj];
}
}
@end
|