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


#import "SDLOnHashChange.h"

#import "NSMutableDictionary+Store.h"
#import "SDLRPCParameterNames.h"
#import "SDLRPCFunctionNames.h"

NS_ASSUME_NONNULL_BEGIN

@implementation SDLOnHashChange

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

- (void)setHashID:(NSString *)hashID {
    [parameters sdl_setObject:hashID forName:SDLRPCParameterNameHashId];
}

- (NSString *)hashID {
    NSError *error = nil;
    return [parameters sdl_objectForName:SDLRPCParameterNameHashId ofClass:NSString.class error:&error];
}

@end

NS_ASSUME_NONNULL_END