blob: 6fe5946de0a740f5d9d0c0a8c27d5fde467a1be8 (
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
|
// SDLSetDisplayLayoutResponse.m
//
#import "SDLSetDisplayLayoutResponse.h"
#import "NSMutableDictionary+Store.h"
#import "SDLButtonCapabilities.h"
#import "SDLDisplayCapabilities.h"
#import "SDLRPCParameterNames.h"
#import "SDLRPCFunctionNames.h"
#import "SDLPresetBankCapabilities.h"
#import "SDLSoftButtonCapabilities.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLSetDisplayLayoutResponse
- (instancetype)init {
if (self = [super initWithName:SDLRPCFunctionNameSetDisplayLayout]) {
}
return self;
}
- (void)setDisplayCapabilities:(nullable SDLDisplayCapabilities *)displayCapabilities {
[parameters sdl_setObject:displayCapabilities forName:SDLRPCParameterNameDisplayCapabilities];
}
- (nullable SDLDisplayCapabilities *)displayCapabilities {
return [parameters sdl_objectForName:SDLRPCParameterNameDisplayCapabilities ofClass:SDLDisplayCapabilities.class];
}
- (void)setButtonCapabilities:(nullable NSArray<SDLButtonCapabilities *> *)buttonCapabilities {
[parameters sdl_setObject:buttonCapabilities forName:SDLRPCParameterNameButtonCapabilities];
}
- (nullable NSArray<SDLButtonCapabilities *> *)buttonCapabilities {
return [parameters sdl_objectsForName:SDLRPCParameterNameButtonCapabilities ofClass:SDLButtonCapabilities.class];
}
- (void)setSoftButtonCapabilities:(nullable NSArray<SDLSoftButtonCapabilities *> *)softButtonCapabilities {
[parameters sdl_setObject:softButtonCapabilities forName:SDLRPCParameterNameSoftButtonCapabilities];
}
- (nullable NSArray<SDLSoftButtonCapabilities *> *)softButtonCapabilities {
return [parameters sdl_objectsForName:SDLRPCParameterNameSoftButtonCapabilities ofClass:SDLSoftButtonCapabilities.class];
}
- (void)setPresetBankCapabilities:(nullable SDLPresetBankCapabilities *)presetBankCapabilities {
[parameters sdl_setObject:presetBankCapabilities forName:SDLRPCParameterNamePresetBankCapabilities];
}
- (nullable SDLPresetBankCapabilities *)presetBankCapabilities {
return [parameters sdl_objectForName:SDLRPCParameterNamePresetBankCapabilities ofClass:SDLPresetBankCapabilities.class];
}
@end
NS_ASSUME_NONNULL_END
|