blob: 5cb66258d7bd636b885af44e11f26b6d036cf05e (
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
|
// SDLSystemRequest.m
//
#import "SDLSystemRequest.h"
#import "NSMutableDictionary+Store.h"
#import "SDLNames.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLSystemRequest
- (instancetype)init {
if (self = [super initWithName:SDLNameSystemRequest]) {
}
return self;
}
- (instancetype)initWithType:(SDLRequestType)requestType fileName:(nullable NSString *)fileName {
self = [self init];
if (!self) {
return nil;
}
self.requestType = requestType;
self.fileName = fileName;
return self;
}
- (void)setRequestType:(SDLRequestType)requestType {
[parameters sdl_setObject:requestType forName:SDLNameRequestType];
}
- (SDLRequestType)requestType {
return [parameters sdl_objectForName:SDLNameRequestType];
}
- (void)setFileName:(nullable NSString *)fileName {
[parameters sdl_setObject:fileName forName:SDLNameFilename];
}
- (nullable NSString *)fileName {
return [parameters sdl_objectForName:SDLNameFilename];
}
@end
NS_ASSUME_NONNULL_END
|