blob: befa2afae5d4b21337f5eb430e74940497355486 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
// SDLChangeRegistration.m
//
#import "SDLChangeRegistration.h"
#import "NSMutableDictionary+Store.h"
#import "SDLNames.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLChangeRegistration
- (instancetype)init {
if (self = [super initWithName:SDLNameChangeRegistration]) {
}
return self;
}
- (instancetype)initWithLanguage:(SDLLanguage)language hmiDisplayLanguage:(SDLLanguage)hmiDisplayLanguage {
self = [self initWithLanguage:language hmiDisplayLanguage:hmiDisplayLanguage appName:nil ttsName:nil ngnMediaScreenAppName:nil vrSynonyms:nil];
if (!self) {
return nil;
}
return self;
}
- (instancetype)initWithLanguage:(SDLLanguage)language hmiDisplayLanguage:(SDLLanguage)hmiDisplayLanguage appName:(nullable NSString *)appName ttsName:(nullable NSArray<SDLTTSChunk *> *)ttsName ngnMediaScreenAppName:(nullable NSString *)ngnMediaScreenAppName vrSynonyms:(nullable NSArray<NSString *> *)vrSynonyms {
self = [self init];
if (!self) {
return nil;
}
self.language = language;
self.hmiDisplayLanguage = hmiDisplayLanguage;
self.appName = appName;
self.ttsName = ttsName;
self.ngnMediaScreenAppName = ngnMediaScreenAppName;
self.vrSynonyms = vrSynonyms;
return self;
}
- (void)setLanguage:(SDLLanguage)language {
[parameters sdl_setObject:language forName:SDLNameLanguage];
}
- (SDLLanguage)language {
return [parameters sdl_objectForName:SDLNameLanguage];
}
- (void)setHmiDisplayLanguage:(SDLLanguage )hmiDisplayLanguage {
[parameters sdl_setObject:hmiDisplayLanguage forName:SDLNameHMIDisplayLanguage];
}
- (SDLLanguage )hmiDisplayLanguage {
return [parameters sdl_objectForName:SDLNameHMIDisplayLanguage];
}
- (void)setAppName:(nullable NSString *)appName {
[parameters sdl_setObject:appName forName:SDLNameAppName];
}
- (nullable NSString *)appName {
return [[parameters sdl_objectForName:SDLNameAppName] copy];
}
- (void)setTtsName:(nullable NSArray<SDLTTSChunk *> *)ttsName {
[parameters sdl_setObject:ttsName forName:SDLNameTTSName];
}
- (nullable NSArray<SDLTTSChunk *> *)ttsName {
return [[parameters sdl_objectForName:SDLNameTTSName] copy];
}
- (void)setNgnMediaScreenAppName:(nullable NSString *)ngnMediaScreenAppName {
[parameters sdl_setObject:ngnMediaScreenAppName forName:SDLNameNGNMediaScreenAppName];
}
- (nullable NSString *)ngnMediaScreenAppName {
return [[parameters sdl_objectForName:SDLNameNGNMediaScreenAppName] copy];
}
- (void)setVrSynonyms:(nullable NSArray<NSString *> *)vrSynonyms {
[parameters sdl_setObject:vrSynonyms forName:SDLNameVRSynonyms];
}
- (nullable NSArray<NSString *> *)vrSynonyms {
return [[parameters sdl_objectForName:SDLNameVRSynonyms] copy];
}
@end
NS_ASSUME_NONNULL_END
|