blob: 84a0081d0bd9adbe8062bd87b3180a19f2a7a20e (
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
|
// SDLOnTBTClientState.m
//
#import "SDLOnTBTClientState.h"
#import "SDLNames.h"
@implementation SDLOnTBTClientState
- (instancetype)init {
if (self = [super initWithName:NAMES_OnTBTClientState]) {
}
return self;
}
- (instancetype)initWithDictionary:(NSMutableDictionary *)dict {
if (self = [super initWithDictionary:dict]) {
}
return self;
}
- (void)setState:(SDLTBTState)state {
if (state != nil) {
[parameters setObject:state forKey:NAMES_state];
} else {
[parameters removeObjectForKey:NAMES_state];
}
}
- (SDLTBTState)state {
NSObject *obj = [parameters objectForKey:NAMES_state];
return (SDLTBTState)obj;
}
@end
|