summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLOnHMIStatus.m
blob: b345856f492ecd5cd824ea4b85a60a5a95b6b23d (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
//  SDLOnHMIStatus.m
//

#import "SDLOnHMIStatus.h"

#import "NSMutableDictionary+Store.h"
#import "SDLAudioStreamingState.h"
#import "SDLHMILevel.h"
#import "SDLNames.h"
#import "SDLSystemContext.h"

NS_ASSUME_NONNULL_BEGIN

@implementation SDLOnHMIStatus

- (instancetype)init {
    if (self = [super initWithName:SDLNameOnHMIStatus]) {
    }
    return self;
}

- (void)setHmiLevel:(SDLHMILevel)hmiLevel {
    [parameters sdl_setObject:hmiLevel forName:SDLNameHMILevel];
}

- (SDLHMILevel)hmiLevel {
    NSObject *obj = [parameters sdl_objectForName:SDLNameHMILevel];
    return (SDLHMILevel)obj;
}

- (void)setAudioStreamingState:(SDLAudioStreamingState)audioStreamingState {
    [parameters sdl_setObject:audioStreamingState forName:SDLNameAudioStreamingState];
}

- (SDLAudioStreamingState)audioStreamingState {
    NSObject *obj = [parameters sdl_objectForName:SDLNameAudioStreamingState];
    return (SDLAudioStreamingState)obj;
}

- (void)setVideoStreamingState:(nullable SDLVideoStreamingState)videoStreamingState {
    [parameters sdl_setObject:videoStreamingState forName:SDLNameVideoStreamingState];
}

- (nullable SDLVideoStreamingState)videoStreamingState {
    return [parameters sdl_objectForName:SDLNameVideoStreamingState];
}

- (void)setSystemContext:(SDLSystemContext)systemContext {
    [parameters sdl_setObject:systemContext forName:SDLNameSystemContext];
}

- (SDLSystemContext)systemContext {
    NSObject *obj = [parameters sdl_objectForName:SDLNameSystemContext];
    return (SDLSystemContext)obj;
}

@end

NS_ASSUME_NONNULL_END