blob: 922b86eec826b8e09d5ba1ca3d93162bc3d9f280 (
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
|
// SDLOnLanguageChange.m
//
#import "SDLOnLanguageChange.h"
#import "NSMutableDictionary+Store.h"
#import "SDLLanguage.h"
#import "SDLRPCParameterNames.h"
#import "SDLRPCFunctionNames.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLOnLanguageChange
- (instancetype)init {
if (self = [super initWithName:SDLRPCFunctionNameOnLanguageChange]) {
}
return self;
}
- (void)setLanguage:(SDLLanguage)language {
[parameters sdl_setObject:language forName:SDLRPCParameterNameLanguage];
}
- (SDLLanguage)language {
NSError *error = nil;
return [parameters sdl_enumForName:SDLRPCParameterNameLanguage error:&error];
}
- (void)setHmiDisplayLanguage:(SDLLanguage)hmiDisplayLanguage {
[parameters sdl_setObject:hmiDisplayLanguage forName:SDLRPCParameterNameHMIDisplayLanguage];
}
- (SDLLanguage)hmiDisplayLanguage {
NSError *error = nil;
return [parameters sdl_enumForName:SDLRPCParameterNameHMIDisplayLanguage error:&error];
}
@end
NS_ASSUME_NONNULL_END
|