blob: 6144e1a9b4bae8c486ef129cfe20f8fc79dd0a59 (
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
|
// SDLSystemRequest.m
//
#import "SDLSystemRequest.h"
#import "SDLNames.h"
@implementation SDLSystemRequest
- (instancetype)init {
if (self = [super initWithName:NAMES_SystemRequest]) {
}
return self;
}
- (instancetype)initWithDictionary:(NSMutableDictionary *)dict {
if (self = [super initWithDictionary:dict]) {
}
return self;
}
- (void)setRequestType:(SDLRequestType)requestType {
if (requestType != nil) {
[parameters setObject:requestType forKey:NAMES_requestType];
} else {
[parameters removeObjectForKey:NAMES_requestType];
}
}
- (SDLRequestType)requestType {
NSObject *obj = [parameters objectForKey:NAMES_requestType];
return (SDLRequestType)obj;
}
- (void)setFileName:(NSString *)fileName {
if (fileName != nil) {
[parameters setObject:fileName forKey:NAMES_fileName];
} else {
[parameters removeObjectForKey:NAMES_fileName];
}
}
- (NSString *)fileName {
return [parameters objectForKey:NAMES_fileName];
}
@end
|