summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLVideoStreamingFormat.m
blob: d7f018b5d442bc17151615416419ffe6192f0a3d (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
//
//  SDLVideoStreamingFormat.m
//  SmartDeviceLink-iOS
//
//  Created by Brett McIsaac on 7/31/17.
//  Copyright © 2017 smartdevicelink. All rights reserved.
//

#import "SDLVideoStreamingFormat.h"
#import "NSMutableDictionary+Store.h"
#import "SDLNames.h"

NS_ASSUME_NONNULL_BEGIN

@implementation SDLVideoStreamingFormat

- (SDLVideoStreamingProtocol)protocol {
    return [store sdl_objectForName:SDLNameVideoProtocol];
}

- (void)setVideoStreamingProtocol:(SDLVideoStreamingProtocol)protocol {
    [store sdl_setObject:protocol forName:SDLNameVideoProtocol];
}

- (SDLVideoStreamingCodec)codec {
    return [store sdl_objectForName:SDLNameVideoCodec];
}

- (void)setVideoStreamingCodec:(SDLVideoStreamingCodec)codec {
    [store sdl_setObject:codec forName:SDLNameVideoCodec];
}

@end

NS_ASSUME_NONNULL_END