Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement SDL 0173 Read Generic Network Signal Data #1374

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
37b500a
Changes for Reading Generic Network Signal data
piyushkhosla Jun 7, 2019
39811b5
Merge branch 'smartdeviceLink/develop' into feature/generic_network_s…
piyushkhosla Jun 7, 2019
437d7a3
Merge branch 'smartdeviceLink/develop' into feature/generic_network_s…
piyushkhosla Jul 24, 2019
c1a0a6e
updating function name from "setGenericNetworkData" to "setOEMCustomV…
piyushkhosla Jul 24, 2019
c39d0e7
updating methods and test cases.
piyushkhosla Jul 26, 2019
34a1c5f
updating naming for customDataType to oemCustomDataType
piyushkhosla Aug 1, 2019
3883c5a
Small changes to add SDLVehicleDataTypeOEMVehicleDataType and update …
mrapitis Aug 2, 2019
bb6c52f
more refactoring
Aug 2, 2019
1081f13
more changes for unit tests
mrapitis Aug 2, 2019
fe5f3e6
updated documentation
mrapitis Aug 2, 2019
371ce16
More doc updates.
mrapitis Aug 5, 2019
10db359
Update SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehi…
mrapitis Aug 27, 2019
a789d4f
Update SmartDeviceLink/SDLGetVehicleData.h
mrapitis Aug 27, 2019
c4b1e8e
Update SmartDeviceLink/SDLGetVehicleData.h
mrapitis Aug 27, 2019
7b52932
Update SmartDeviceLink/SDLGetVehicleData.h
mrapitis Aug 27, 2019
96136d9
Update SmartDeviceLink/SDLSubscribeVehicleData.h
mrapitis Aug 27, 2019
43f595b
Update SmartDeviceLink/SDLSubscribeVehicleData.h
mrapitis Aug 27, 2019
e113d7e
Update SmartDeviceLink/SDLSubscribeVehicleData.h
mrapitis Aug 27, 2019
3d7e11a
Update SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehi…
mrapitis Aug 27, 2019
e927b45
Update SmartDeviceLink/SDLSubscribeVehicleData.h
mrapitis Aug 27, 2019
4cd418e
Update SmartDeviceLink/SDLUnsubscribeVehicleData.h
mrapitis Aug 27, 2019
eb0b108
Update SmartDeviceLink/SDLUnsubscribeVehicleData.h
mrapitis Aug 27, 2019
f574c1c
Update SmartDeviceLink/SDLUnsubscribeVehicleData.h
mrapitis Aug 27, 2019
51b45aa
Update SmartDeviceLink/SDLGetVehicleDataResponse.h
mrapitis Aug 27, 2019
0e3e249
Update SmartDeviceLink/SDLGetVehicleDataResponse.h
mrapitis Aug 27, 2019
85201bf
Update SmartDeviceLink/SDLGetVehicleDataResponse.h
mrapitis Aug 27, 2019
7d31ee2
Update SmartDeviceLink/SDLGetVehicleDataResponse.h
mrapitis Aug 27, 2019
ed09a82
Update SmartDeviceLink/SDLGetVehicleDataResponse.m
mrapitis Aug 27, 2019
83127a7
Update SmartDeviceLink/SDLGetVehicleDataResponse.m
mrapitis Aug 27, 2019
20c8994
Update SmartDeviceLink/SDLGetVehicleDataResponse.h
mrapitis Aug 27, 2019
c95b2f3
Update SmartDeviceLink/SDLGetVehicleDataResponse.h
mrapitis Aug 27, 2019
914e860
Update SmartDeviceLink/SDLOnVehicleData.h
mrapitis Aug 27, 2019
fda1b74
Update SmartDeviceLink/SDLOnVehicleData.h
mrapitis Aug 27, 2019
c51de45
Update SmartDeviceLink/SDLOnVehicleData.h
mrapitis Aug 27, 2019
7d221d4
Update SmartDeviceLink/SDLOnVehicleData.h
mrapitis Aug 27, 2019
579eba3
Update SmartDeviceLink/SDLOnVehicleData.h
mrapitis Aug 27, 2019
ae2e448
Update SmartDeviceLink/SDLOnVehicleData.h
mrapitis Aug 27, 2019
fbe54df
Update SmartDeviceLink/SDLOnVehicleData.m
mrapitis Aug 27, 2019
d752db3
Update SmartDeviceLink/SDLOnVehicleData.m
mrapitis Aug 27, 2019
bf27530
Update SmartDeviceLink/SDLSubscribeVehicleDataResponse.h
mrapitis Aug 27, 2019
5aeed8b
Update SmartDeviceLink/SDLSubscribeVehicleDataResponse.h
mrapitis Aug 27, 2019
f378727
Update SmartDeviceLink/SDLSubscribeVehicleDataResponse.h
mrapitis Aug 27, 2019
25a039c
Update SmartDeviceLink/SDLSubscribeVehicleDataResponse.h
mrapitis Aug 27, 2019
bf00215
Update SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h
mrapitis Aug 27, 2019
2a11b48
Update SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h
mrapitis Aug 27, 2019
3ba6da7
Update SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h
mrapitis Aug 27, 2019
c315567
Update SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h
mrapitis Aug 27, 2019
c51a459
Apply suggestions from code review
mrapitis Aug 27, 2019
38de995
Apply suggestions from code review
piyushkhosla Aug 28, 2019
39029db
Update SmartDeviceLink/SDLGetVehicleData.h
mrapitis Aug 28, 2019
a322d6f
Update SmartDeviceLink/SDLGetVehicleData.h
mrapitis Aug 28, 2019
aef468f
Update SmartDeviceLink/SDLGetVehicleData.h
mrapitis Aug 28, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions SmartDeviceLink/SDLGetVehicleData.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,26 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nullable, strong, nonatomic) NSNumber<SDLBool> *cloudAppVehicleID;

/**
mrapitis marked this conversation as resolved.
Show resolved Hide resolved
Sets the OEM custom vehicle data state for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@param vehicleDataState A boolean value. If true, requests the OEM custom vehicle data item.

Added in SmartDeviceLink 6.0
*/
- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(BOOL)vehicleDataState;

/**
mrapitis marked this conversation as resolved.
Show resolved Hide resolved
Gets the OEM custom vehicle data value for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@return The state of an OEM custom vehicle data item for the given vehicle data name.

Added in SmartDeviceLink 6.0
*/
- (NSNumber<SDLBool> *)getOEMCustomVehicleData:(NSString *)vehicleDataName;

@end

NS_ASSUME_NONNULL_END
8 changes: 8 additions & 0 deletions SmartDeviceLink/SDLGetVehicleData.m
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ - (void)setCloudAppVehicleID:(nullable NSNumber<SDLBool> *)cloudAppVehicleID {
return [self.parameters sdl_objectForName:SDLRPCParameterNameCloudAppVehicleID ofClass:NSNumber.class error:nil];
}

- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(BOOL)vehicleDataState {
[self.parameters sdl_setObject:@(vehicleDataState) forName:vehicleDataName];
}

- (NSNumber<SDLBool> *)getOEMCustomVehicleData:(NSString *)vehicleDataName {
return [self.parameters sdl_objectForName:vehicleDataName ofClass:NSNumber.class error:nil];
}

@end

NS_ASSUME_NONNULL_END
20 changes: 20 additions & 0 deletions SmartDeviceLink/SDLGetVehicleDataResponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,26 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nullable, strong, nonatomic) NSString *cloudAppVehicleID;

/**
Sets the OEM custom vehicle data state for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@param vehicleDataState An object containing the OEM custom vehicle data item.

Added in SmartDeviceLink 6.0
*/
- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(NSObject *)vehicleDataState;

/**
Gets the OEM custom vehicle data item for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@return An OEM custom vehicle data object for the given vehicle data name.

Added in SmartDeviceLink 6.0
*/
- (NSObject *)getOEMCustomVehicleData:(NSString *)vehicleDataName;

@end

NS_ASSUME_NONNULL_END
8 changes: 8 additions & 0 deletions SmartDeviceLink/SDLGetVehicleDataResponse.m
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,14 @@ - (nullable NSString *)cloudAppVehicleID {
return [self.parameters sdl_objectForName:SDLRPCParameterNameCloudAppVehicleID ofClass:NSString.class error:nil];
}

- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(NSObject *)vehicleDataState {
[self.parameters sdl_setObject:vehicleDataState forName:vehicleDataName];
}

- (NSObject *)getOEMCustomVehicleData:(NSString *)vehicleDataName {
return [self.parameters sdl_objectForName:vehicleDataName ofClass:NSObject.class error:nil];
mrapitis marked this conversation as resolved.
Show resolved Hide resolved
}

@end

NS_ASSUME_NONNULL_END
20 changes: 20 additions & 0 deletions SmartDeviceLink/SDLOnVehicleData.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,26 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nullable, strong, nonatomic) NSString *cloudAppVehicleID;

/**
Sets the OEM custom vehicle data state for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@param vehicleDataState An object containing the OEM custom vehicle data item.

Added in SmartDeviceLink 6.0
*/
- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(NSObject *)vehicleDataState;

/**
Gets the OEM custom vehicle data item for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@return An OEM custom vehicle data object for the given vehicle data name.

Added in SmartDeviceLink 6.0
*/
- (NSObject *)getOEMCustomVehicleData:(NSString *)vehicleDataName;

@end

NS_ASSUME_NONNULL_END
8 changes: 8 additions & 0 deletions SmartDeviceLink/SDLOnVehicleData.m
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,14 @@ - (nullable NSString *)cloudAppVehicleID {
return [self.parameters sdl_objectForName:SDLRPCParameterNameCloudAppVehicleID ofClass:NSString.class error:nil];
}

- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(NSObject *)vehicleDataState {
[self.parameters sdl_setObject:vehicleDataState forName:vehicleDataName];
}

- (NSObject *)getOEMCustomVehicleData:(NSString *)vehicleDataName {
return [self.parameters sdl_objectForName:vehicleDataName ofClass:NSObject.class error:nil];
}

@end

NS_ASSUME_NONNULL_END
1 change: 1 addition & 0 deletions SmartDeviceLink/SDLRPCParameterNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ extern SDLRPCParameterName const SDLRPCParameterNameCurrentTemperature;
extern SDLRPCParameterName const SDLRPCParameterNameCushion;
extern SDLRPCParameterName const SDLRPCParameterNameCustomButtonId;
extern SDLRPCParameterName const SDLRPCParameterNameCustomPresets;
extern SDLRPCParameterName const SDLRPCParameterNameOEMCustomDataType;
extern SDLRPCParameterName const SDLRPCParameterNameData;
extern SDLRPCParameterName const SDLRPCParameterNameDataResult;
extern SDLRPCParameterName const SDLRPCParameterNameDataType;
Expand Down
1 change: 1 addition & 0 deletions SmartDeviceLink/SDLRPCParameterNames.m
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
SDLRPCParameterName const SDLRPCParameterNameNumberCustomPresetsAvailable = @"numCustomPresetsAvailable";
SDLRPCParameterName const SDLRPCParameterNameNumberTicks = @"numTicks";
SDLRPCParameterName const SDLRPCParameterNameOdometer = @"odometer";
SDLRPCParameterName const SDLRPCParameterNameOEMCustomDataType = @"oemCustomDataType";
SDLRPCParameterName const SDLRPCParameterNameOffset = @"offset";
SDLRPCParameterName const SDLRPCParameterNameOnLockScreenStatus = @"OnLockScreenStatus";
SDLRPCParameterName const SDLRPCParameterNameOnScreenPresetsAvailable = @"onScreenPresetsAvailable";
Expand Down
22 changes: 22 additions & 0 deletions SmartDeviceLink/SDLSubscribeVehicleData.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,28 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nonatomic, nullable) NSNumber<SDLBool> *cloudAppVehicleID;

/**
Sets the OEM custom vehicle data state for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@param vehicleDataState A boolean value. If true, requests the OEM custom vehicle data item.

Added in SmartDeviceLink 6.0
*/
- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(BOOL)vehicleDataState;

/**
Gets the OEM custom vehicle data value for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@return The state of an OEM custom vehicle data item for the given vehicle data name.

Added in SmartDeviceLink 6.0
*/
- (NSNumber<SDLBool> *)getOEMCustomVehicleData:(NSString *)vehicleDataName;



@end

NS_ASSUME_NONNULL_END
8 changes: 8 additions & 0 deletions SmartDeviceLink/SDLSubscribeVehicleData.m
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,14 @@ - (void)setCloudAppVehicleID:(nullable NSNumber<SDLBool> *)cloudAppVehicleID {
return [self.parameters sdl_objectForName:SDLRPCParameterNameCloudAppVehicleID ofClass:NSNumber.class error:nil];
}

- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(BOOL)vehicleDataState {
[self.parameters sdl_setObject:@(vehicleDataState) forName:vehicleDataName];
}

- (NSNumber<SDLBool> *)getOEMCustomVehicleData:(NSString *)vehicleDataName {
return [self.parameters sdl_objectForName:vehicleDataName ofClass:NSNumber.class error:nil];
}

@end

NS_ASSUME_NONNULL_END
20 changes: 20 additions & 0 deletions SmartDeviceLink/SDLSubscribeVehicleDataResponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,26 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nonatomic, nullable) SDLVehicleDataResult *cloudAppVehicleID;

/**
Sets the OEM custom vehicle data state for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@param vehicleDataState SDLVehicleDataResult object containing custom data type and result code information.

Added SmartDeviceLink 6.0
*/
- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(SDLVehicleDataResult *)vehicleDataState;

/**
Gets the OEM custom vehicle data state for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@return SDLVehicleDataResult An object containing custom data type and result code information.

Added SmartDeviceLink 6.0
*/
- (SDLVehicleDataResult *)getOEMCustomVehicleData:(NSString *)vehicleDataName;

@end

NS_ASSUME_NONNULL_END
8 changes: 8 additions & 0 deletions SmartDeviceLink/SDLSubscribeVehicleDataResponse.m
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,14 @@ - (nullable SDLVehicleDataResult *)cloudAppVehicleID {
return [self.parameters sdl_objectForName:SDLRPCParameterNameCloudAppVehicleID ofClass:SDLVehicleDataResult.class error:nil];
}

- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(SDLVehicleDataResult *)vehicleDataState {
[self.parameters sdl_setObject:vehicleDataState forName:vehicleDataName];
}

- (SDLVehicleDataResult *)getOEMCustomVehicleData:(NSString *)vehicleDataName {
return [self.parameters sdl_objectForName:vehicleDataName ofClass:SDLVehicleDataResult.class error:nil];
}

@end

NS_ASSUME_NONNULL_END
19 changes: 19 additions & 0 deletions SmartDeviceLink/SDLUnsubscribeVehicleData.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,25 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nonatomic, nullable) NSNumber<SDLBool> *cloudAppVehicleID;

/**
Sets the OEM custom vehicle data state for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@param vehicleDataState A boolean value. If true, requests an unsubscribes of the OEM custom vehicle data item.

Added SmartDeviceLink 6.0
*/
- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(BOOL)vehicleDataState;

/**
Gets the OEM custom vehicle data state for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item to unsubscribe for.
@return A boolean value indicating if an unsubscribe request will occur for the OEM custom vehicle data item.

Added SmartDeviceLink 6.0
*/
- (NSNumber<SDLBool> *)getOEMCustomVehicleData:(NSString *)vehicleDataName;

@end

Expand Down
8 changes: 8 additions & 0 deletions SmartDeviceLink/SDLUnsubscribeVehicleData.m
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,14 @@ - (void)setCloudAppVehicleID:(nullable NSNumber<SDLBool> *)cloudAppVehicleID {
return [self.parameters sdl_objectForName:SDLRPCParameterNameCloudAppVehicleID ofClass:NSNumber.class error:nil];
}

- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(BOOL)vehicleDataState {
[self.parameters sdl_setObject:@(vehicleDataState) forName:vehicleDataName];
}

- (NSNumber<SDLBool> *)getOEMCustomVehicleData:(NSString *)vehicleDataName {
return [self.parameters sdl_objectForName:vehicleDataName ofClass:NSNumber.class error:nil];
}

@end

NS_ASSUME_NONNULL_END
20 changes: 20 additions & 0 deletions SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,26 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nonatomic, nullable) SDLVehicleDataResult *cloudAppVehicleID;

/**
Sets the OEM custom vehicle data state for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@param vehicleDataState SDLVehicleDataResult object containing custom data type and result code information.

Added SmartDeviceLink 6.0
*/
- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(SDLVehicleDataResult *)vehicleDataState;

/**
Gets the OEM custom vehicle data state for any given OEM custom vehicle data name.

@param vehicleDataName The name of the OEM custom vehicle data item.
@return SDLVehicleDataResult object containing custom data type and result code information.

Added SmartDeviceLink 6.0
*/
- (SDLVehicleDataResult *)getOEMCustomVehicleData:(NSString *)vehicleDataName;

@end

NS_ASSUME_NONNULL_END
8 changes: 8 additions & 0 deletions SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,14 @@ - (nullable SDLVehicleDataResult *)cloudAppVehicleID {
return [self.parameters sdl_objectForName:SDLRPCParameterNameCloudAppVehicleID ofClass:SDLVehicleDataResult.class error:nil];
}

- (void)setOEMCustomVehicleData:(NSString *)vehicleDataName withVehicleDataState:(SDLVehicleDataResult *)vehicleDataState {
[self.parameters sdl_setObject:vehicleDataState forName:vehicleDataName];
}

- (SDLVehicleDataResult *)getOEMCustomVehicleData:(NSString *)vehicleDataName {
return [self.parameters sdl_objectForName:vehicleDataName ofClass:SDLVehicleDataResult.class error:nil];
}

@end

NS_ASSUME_NONNULL_END
23 changes: 23 additions & 0 deletions SmartDeviceLink/SDLVehicleDataResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,34 @@ NS_ASSUME_NONNULL_BEGIN
*/
@interface SDLVehicleDataResult : SDLRPCStruct

/**
* Convenience init for creating a SDLVehicleDataResult with a dataType
*
* @param dataType The Vehicle DataType data
* @param resultCode The VehicleData ResultCode data
*/
- (instancetype)initWithDataType:(SDLVehicleDataType)dataType resultCode:(SDLVehicleDataResultCode)resultCode;

/**
* Convenience init for creating a SDLVehicleDataResult with a customDataType
*
* @param customDataType The custom dataType data
* @param resultCode The VehicleData ResultCode data
*/
- (instancetype)initWithCustomOEMDataType:(NSString *)customDataType resultCode:(SDLVehicleDataResultCode)resultCode;

/**
Defined published data element type
*/
@property (strong, nonatomic) SDLVehicleDataType dataType;

/**
OEM custom defined published data element type

Added SmartDeviceLink 6.0
*/
@property (nullable, strong, nonatomic) NSString *customOEMDataType;

/**
Published data result code
*/
Expand Down
33 changes: 33 additions & 0 deletions SmartDeviceLink/SDLVehicleDataResult.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,30 @@

@implementation SDLVehicleDataResult

- (instancetype)initWithDataType:(SDLVehicleDataType)dataType resultCode:(SDLVehicleDataResultCode)resultCode {
self = [self init];
if (!self) {
return nil;
}

self.dataType = dataType;
self.resultCode = resultCode;

return self;
}

- (instancetype)initWithCustomOEMDataType:(NSString *)customDataType resultCode:(SDLVehicleDataResultCode)resultCode{
self = [self init];
if (!self) {
return nil;
}

self.customOEMDataType = customDataType;
self.resultCode = resultCode;

return self;
}

- (void)setDataType:(SDLVehicleDataType)dataType {
[self.store sdl_setObject:dataType forName:SDLRPCParameterNameDataType];
}
Expand All @@ -28,6 +52,15 @@ - (SDLVehicleDataResultCode)resultCode {
return [self.store sdl_enumForName:SDLRPCParameterNameResultCode error:&error];
}

- (nullable NSString *)customOEMDataType {
NSError *error = nil;
return [self.store sdl_enumForName:SDLRPCParameterNameOEMCustomDataType error:&error];
}

- (void)setCustomOEMDataType:(nullable NSString *)oemCustomDataType {
[self.store sdl_setObject:oemCustomDataType forName:SDLRPCParameterNameOEMCustomDataType];
}

@end

NS_ASSUME_NONNULL_END
Loading