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

#import "SDLDiagnosticMessageResponse.h"

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

NS_ASSUME_NONNULL_BEGIN

@implementation SDLDiagnosticMessageResponse

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
- (instancetype)init {
    if (self = [super initWithName:SDLRPCFunctionNameDiagnosticMessage]) {
    }
    return self;
}
#pragma clang diagnostic pop

- (void)setMessageDataResult:(nullable NSArray<NSNumber<SDLInt> *> *)messageDataResult {
    [self.parameters sdl_setObject:messageDataResult forName:SDLRPCParameterNameMessageDataResult];
}

- (nullable NSArray<NSNumber<SDLInt> *> *)messageDataResult {
    NSError *error = nil;
    return [self.parameters sdl_objectsForName:SDLRPCParameterNameMessageDataResult ofClass:NSNumber.class error:&error];
}

@end

NS_ASSUME_NONNULL_END