summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-01-27 09:40:36 -0500
committerJoel Fischer <joeljfischer@gmail.com>2016-01-27 09:40:36 -0500
commit0bbe7e1af53eb5a14793a4446eb92a0b9f8b163d (patch)
treec95404de40e0e92ed5248037ebce4f4402550b20
parentfd60b516e96122a9a12b10f4f52e6a07325c5eec (diff)
parent1d2e5df671414eb488d7b02c6f92d6b90d7f7801 (diff)
downloadsdl_ios-0bbe7e1af53eb5a14793a4446eb92a0b9f8b163d.tar.gz
Merge branch 'hotfix/issue_75'
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.m16
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.m6
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.m30
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.m6
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.m6
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.m6
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.m8
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.m30
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.m6
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.m6
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.m30
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.m6
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.m8
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m14
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.m6
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.m6
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.m6
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m48
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.m14
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m2
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m48
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.m4
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.m2
63 files changed, 216 insertions, 216 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.m
index bb7692127..b0de0f49e 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.m
@@ -45,7 +45,7 @@
- (SDLMenuParams *)menuParams {
NSObject *obj = [parameters objectForKey:NAMES_menuParams];
- if ([obj isKindOfClass:SDLMenuParams.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLMenuParams.class]) {
return (SDLMenuParams *)obj;
} else {
return [[SDLMenuParams alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -74,7 +74,7 @@
- (SDLImage *)cmdIcon {
NSObject *obj = [parameters objectForKey:NAMES_cmdIcon];
- if ([obj isKindOfClass:SDLImage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.m
index 6565c0270..a3ce06689 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.m
@@ -30,7 +30,7 @@
- (SDLVehicleDataEventStatus *)driverAirbagDeployed {
NSObject *obj = [store objectForKey:NAMES_driverAirbagDeployed];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -47,7 +47,7 @@
- (SDLVehicleDataEventStatus *)driverSideAirbagDeployed {
NSObject *obj = [store objectForKey:NAMES_driverSideAirbagDeployed];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -64,7 +64,7 @@
- (SDLVehicleDataEventStatus *)driverCurtainAirbagDeployed {
NSObject *obj = [store objectForKey:NAMES_driverCurtainAirbagDeployed];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -81,7 +81,7 @@
- (SDLVehicleDataEventStatus *)passengerAirbagDeployed {
NSObject *obj = [store objectForKey:NAMES_passengerAirbagDeployed];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -98,7 +98,7 @@
- (SDLVehicleDataEventStatus *)passengerCurtainAirbagDeployed {
NSObject *obj = [store objectForKey:NAMES_passengerCurtainAirbagDeployed];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -115,7 +115,7 @@
- (SDLVehicleDataEventStatus *)driverKneeAirbagDeployed {
NSObject *obj = [store objectForKey:NAMES_driverKneeAirbagDeployed];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -132,7 +132,7 @@
- (SDLVehicleDataEventStatus *)passengerSideAirbagDeployed {
NSObject *obj = [store objectForKey:NAMES_passengerSideAirbagDeployed];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -149,7 +149,7 @@
- (SDLVehicleDataEventStatus *)passengerKneeAirbagDeployed {
NSObject *obj = [store objectForKey:NAMES_passengerKneeAirbagDeployed];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.m
index feecdc19b..fbb02be84 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.m
@@ -34,7 +34,7 @@
- (SDLSamplingRate *)samplingRate {
NSObject *obj = [store objectForKey:NAMES_samplingRate];
- if ([obj isKindOfClass:SDLSamplingRate.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSamplingRate.class]) {
return (SDLSamplingRate *)obj;
} else {
return [SDLSamplingRate valueOf:(NSString *)obj];
@@ -51,7 +51,7 @@
- (SDLBitsPerSample *)bitsPerSample {
NSObject *obj = [store objectForKey:NAMES_bitsPerSample];
- if ([obj isKindOfClass:SDLBitsPerSample.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLBitsPerSample.class]) {
return (SDLBitsPerSample *)obj;
} else {
return [SDLBitsPerSample valueOf:(NSString *)obj];
@@ -68,7 +68,7 @@
- (SDLAudioType *)audioType {
NSObject *obj = [store objectForKey:NAMES_audioType];
- if ([obj isKindOfClass:SDLAudioType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLAudioType.class]) {
return (SDLAudioType *)obj;
} else {
return [SDLAudioType valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.m
index 7f2e42376..70b54d2bd 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.m
@@ -31,7 +31,7 @@
- (SDLVehicleDataEventStatus *)driverBeltDeployed {
NSObject *obj = [store objectForKey:NAMES_driverBeltDeployed];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -48,7 +48,7 @@
- (SDLVehicleDataEventStatus *)passengerBeltDeployed {
NSObject *obj = [store objectForKey:NAMES_passengerBeltDeployed];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -65,7 +65,7 @@
- (SDLVehicleDataEventStatus *)passengerBuckleBelted {
NSObject *obj = [store objectForKey:NAMES_passengerBuckleBelted];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -82,7 +82,7 @@
- (SDLVehicleDataEventStatus *)driverBuckleBelted {
NSObject *obj = [store objectForKey:NAMES_driverBuckleBelted];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -99,7 +99,7 @@
- (SDLVehicleDataEventStatus *)leftRow2BuckleBelted {
NSObject *obj = [store objectForKey:NAMES_leftRow2BuckleBelted];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -116,7 +116,7 @@
- (SDLVehicleDataEventStatus *)passengerChildDetected {
NSObject *obj = [store objectForKey:NAMES_passengerChildDetected];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -133,7 +133,7 @@
- (SDLVehicleDataEventStatus *)rightRow2BuckleBelted {
NSObject *obj = [store objectForKey:NAMES_rightRow2BuckleBelted];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -150,7 +150,7 @@
- (SDLVehicleDataEventStatus *)middleRow2BuckleBelted {
NSObject *obj = [store objectForKey:NAMES_middleRow2BuckleBelted];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -167,7 +167,7 @@
- (SDLVehicleDataEventStatus *)middleRow3BuckleBelted {
NSObject *obj = [store objectForKey:NAMES_middleRow3BuckleBelted];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -184,7 +184,7 @@
- (SDLVehicleDataEventStatus *)leftRow3BuckleBelted {
NSObject *obj = [store objectForKey:NAMES_leftRow3BuckleBelted];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -201,7 +201,7 @@
- (SDLVehicleDataEventStatus *)rightRow3BuckleBelted {
NSObject *obj = [store objectForKey:NAMES_rightRow3BuckleBelted];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -218,7 +218,7 @@
- (SDLVehicleDataEventStatus *)leftRearInflatableBelted {
NSObject *obj = [store objectForKey:NAMES_leftRearInflatableBelted];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -235,7 +235,7 @@
- (SDLVehicleDataEventStatus *)rightRearInflatableBelted {
NSObject *obj = [store objectForKey:NAMES_rightRearInflatableBelted];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -252,7 +252,7 @@
- (SDLVehicleDataEventStatus *)middleRow1BeltDeployed {
NSObject *obj = [store objectForKey:NAMES_middleRow1BeltDeployed];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -269,7 +269,7 @@
- (SDLVehicleDataEventStatus *)middleRow1BuckleBelted {
NSObject *obj = [store objectForKey:NAMES_middleRow1BuckleBelted];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.m
index 6005b503b..9be7a88d6 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.m
@@ -45,7 +45,7 @@
- (SDLIgnitionStableStatus *)ignitionStableStatus {
NSObject *obj = [store objectForKey:NAMES_ignitionStableStatus];
- if ([obj isKindOfClass:SDLIgnitionStableStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLIgnitionStableStatus.class]) {
return (SDLIgnitionStableStatus *)obj;
} else {
return [SDLIgnitionStableStatus valueOf:(NSString *)obj];
@@ -62,7 +62,7 @@
- (SDLIgnitionStatus *)ignitionStatus {
NSObject *obj = [store objectForKey:NAMES_ignitionStatus];
- if ([obj isKindOfClass:SDLIgnitionStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLIgnitionStatus.class]) {
return (SDLIgnitionStatus *)obj;
} else {
return [SDLIgnitionStatus valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.m
index 6b7826448..fbcab54c9 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.m
@@ -31,7 +31,7 @@
- (SDLButtonName *)name {
NSObject *obj = [store objectForKey:NAMES_name];
- if ([obj isKindOfClass:SDLButtonName.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) {
return (SDLButtonName *)obj;
} else {
return [SDLButtonName valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.m
index fa9f9edfc..5ea0f733f 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.m
@@ -31,7 +31,7 @@
- (SDLLanguage *)language {
NSObject *obj = [parameters objectForKey:NAMES_language];
- if ([obj isKindOfClass:SDLLanguage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) {
return (SDLLanguage *)obj;
} else {
return [SDLLanguage valueOf:(NSString *)obj];
@@ -48,7 +48,7 @@
- (SDLLanguage *)hmiDisplayLanguage {
NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguage];
- if ([obj isKindOfClass:SDLLanguage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) {
return (SDLLanguage *)obj;
} else {
return [SDLLanguage valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.m
index 65ff8ce49..83e1d56ae 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.m
@@ -67,7 +67,7 @@
- (SDLImage *)image {
NSObject *obj = [store objectForKey:NAMES_image];
- if ([obj isKindOfClass:SDLImage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -108,7 +108,7 @@
- (SDLImage *)secondaryImage {
NSObject *obj = [store objectForKey:NAMES_secondaryImage];
- if ([obj isKindOfClass:SDLImage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.m
index 719f3ca9f..ecd2a528b 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.m
@@ -45,7 +45,7 @@
- (SDLPowerModeQualificationStatus *)powerModeQualificationStatus {
NSObject *obj = [store objectForKey:NAMES_powerModeQualificationStatus];
- if ([obj isKindOfClass:SDLPowerModeQualificationStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLPowerModeQualificationStatus.class]) {
return (SDLPowerModeQualificationStatus *)obj;
} else {
return [SDLPowerModeQualificationStatus valueOf:(NSString *)obj];
@@ -62,7 +62,7 @@
- (SDLCarModeStatus *)carModeStatus {
NSObject *obj = [store objectForKey:NAMES_carModeStatus];
- if ([obj isKindOfClass:SDLCarModeStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLCarModeStatus.class]) {
return (SDLCarModeStatus *)obj;
} else {
return [SDLCarModeStatus valueOf:(NSString *)obj];
@@ -79,7 +79,7 @@
- (SDLPowerModeStatus *)powerModeStatus {
NSObject *obj = [store objectForKey:NAMES_powerModeStatus];
- if ([obj isKindOfClass:SDLPowerModeStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLPowerModeStatus.class]) {
return (SDLPowerModeStatus *)obj;
} else {
return [SDLPowerModeStatus valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m
index a96af0a1a..bf7f600ec 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m
@@ -172,7 +172,7 @@
id obj = [currentDictionary objectForKey:@"object"];
NSString *alertText = nil;
- if ([obj isKindOfClass:SDLRPCMessage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLRPCMessage.class]) {
SDLRPCMessage *rpc = obj;
NSDictionary *dictionary = [rpc serializeAsDictionary:2];
NSError *error = nil;
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.m
index 9061d701f..be42582e7 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.m
@@ -31,7 +31,7 @@
- (SDLVehicleDataResultCode *)resultCode {
NSObject *obj = [store objectForKey:NAMES_resultCode];
- if ([obj isKindOfClass:SDLVehicleDataResultCode.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResultCode.class]) {
return (SDLVehicleDataResultCode *)obj;
} else {
return [SDLVehicleDataResultCode valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.m
index f0eb8e2ab..fbe3b4b96 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.m
@@ -92,7 +92,7 @@
- (SDLDeviceLevelStatus *)battLevelStatus {
NSObject *obj = [store objectForKey:NAMES_battLevelStatus];
- if ([obj isKindOfClass:SDLDeviceLevelStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLDeviceLevelStatus.class]) {
return (SDLDeviceLevelStatus *)obj;
} else {
return [SDLDeviceLevelStatus valueOf:(NSString *)obj];
@@ -133,7 +133,7 @@
- (SDLDeviceLevelStatus *)signalLevelStatus {
NSObject *obj = [store objectForKey:NAMES_signalLevelStatus];
- if ([obj isKindOfClass:SDLDeviceLevelStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLDeviceLevelStatus.class]) {
return (SDLDeviceLevelStatus *)obj;
} else {
return [SDLDeviceLevelStatus valueOf:(NSString *)obj];
@@ -150,7 +150,7 @@
- (SDLPrimaryAudioSource *)primaryAudioSource {
NSObject *obj = [store objectForKey:NAMES_primaryAudioSource];
- if ([obj isKindOfClass:SDLPrimaryAudioSource.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLPrimaryAudioSource.class]) {
return (SDLPrimaryAudioSource *)obj;
} else {
return [SDLPrimaryAudioSource valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.m
index 2b805dca7..07ae53d62 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.m
@@ -35,7 +35,7 @@
- (SDLDisplayType *)displayType {
NSObject *obj = [store objectForKey:NAMES_displayType];
- if ([obj isKindOfClass:SDLDisplayType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLDisplayType.class]) {
return (SDLDisplayType *)obj;
} else {
return [SDLDisplayType valueOf:(NSString *)obj];
@@ -139,7 +139,7 @@
- (SDLScreenParams *)screenParams {
NSObject *obj = [store objectForKey:NAMES_screenParams];
- if ([obj isKindOfClass:SDLScreenParams.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLScreenParams.class]) {
return (SDLScreenParams *)obj;
} else {
return [[SDLScreenParams alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.m
index 5c5e8fd0b..44046fcd0 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.m
@@ -32,7 +32,7 @@
- (SDLVehicleDataNotificationStatus *)eCallNotificationStatus {
NSObject *obj = [store objectForKey:NAMES_eCallNotificationStatus];
- if ([obj isKindOfClass:SDLVehicleDataNotificationStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataNotificationStatus.class]) {
return (SDLVehicleDataNotificationStatus *)obj;
} else {
return [SDLVehicleDataNotificationStatus valueOf:(NSString *)obj];
@@ -49,7 +49,7 @@
- (SDLVehicleDataNotificationStatus *)auxECallNotificationStatus {
NSObject *obj = [store objectForKey:NAMES_auxECallNotificationStatus];
- if ([obj isKindOfClass:SDLVehicleDataNotificationStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataNotificationStatus.class]) {
return (SDLVehicleDataNotificationStatus *)obj;
} else {
return [SDLVehicleDataNotificationStatus valueOf:(NSString *)obj];
@@ -66,7 +66,7 @@
- (SDLECallConfirmationStatus *)eCallConfirmationStatus {
NSObject *obj = [store objectForKey:NAMES_eCallConfirmationStatus];
- if ([obj isKindOfClass:SDLECallConfirmationStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLECallConfirmationStatus.class]) {
return (SDLECallConfirmationStatus *)obj;
} else {
return [SDLECallConfirmationStatus valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.m
index 307253dfa..76fca57e2 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.m
@@ -33,7 +33,7 @@
- (SDLEmergencyEventType *)emergencyEventType {
NSObject *obj = [store objectForKey:NAMES_emergencyEventType];
- if ([obj isKindOfClass:SDLEmergencyEventType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLEmergencyEventType.class]) {
return (SDLEmergencyEventType *)obj;
} else {
return [SDLEmergencyEventType valueOf:(NSString *)obj];
@@ -50,7 +50,7 @@
- (SDLFuelCutoffStatus *)fuelCutoffStatus {
NSObject *obj = [store objectForKey:NAMES_fuelCutoffStatus];
- if ([obj isKindOfClass:SDLFuelCutoffStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLFuelCutoffStatus.class]) {
return (SDLFuelCutoffStatus *)obj;
} else {
return [SDLFuelCutoffStatus valueOf:(NSString *)obj];
@@ -67,7 +67,7 @@
- (SDLVehicleDataEventStatus *)rolloverEvent {
NSObject *obj = [store objectForKey:NAMES_rolloverEvent];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -96,7 +96,7 @@
- (SDLVehicleDataEventStatus *)multipleEvents {
NSObject *obj = [store objectForKey:NAMES_multipleEvents];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.m
index c8a8a502e..1cec52112 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.m
@@ -128,7 +128,7 @@
- (SDLCompassDirection *)compassDirection {
NSObject *obj = [store objectForKey:NAMES_compassDirection];
- if ([obj isKindOfClass:SDLCompassDirection.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLCompassDirection.class]) {
return (SDLCompassDirection *)obj;
} else {
return [SDLCompassDirection valueOf:(NSString *)obj];
@@ -205,7 +205,7 @@
- (SDLDimension *)dimension {
NSObject *obj = [store objectForKey:NAMES_dimension];
- if ([obj isKindOfClass:SDLDimension.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLDimension.class]) {
return (SDLDimension *)obj;
} else {
return [SDLDimension valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.m
index 35d85e4ec..7f1bdb351 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.m
@@ -46,7 +46,7 @@
- (SDLGPSData *)gps {
NSObject *obj = [parameters objectForKey:NAMES_gps];
- if ([obj isKindOfClass:SDLGPSData.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLGPSData.class]) {
return (SDLGPSData *)obj;
} else {
return [[SDLGPSData alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -99,7 +99,7 @@
- (SDLComponentVolumeStatus *)fuelLevel_State {
NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State];
- if ([obj isKindOfClass:SDLComponentVolumeStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLComponentVolumeStatus.class]) {
return (SDLComponentVolumeStatus *)obj;
} else {
return [SDLComponentVolumeStatus valueOf:(NSString *)obj];
@@ -152,7 +152,7 @@
- (SDLPRNDL *)prndl {
NSObject *obj = [parameters objectForKey:NAMES_prndl];
- if ([obj isKindOfClass:SDLPRNDL.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLPRNDL.class]) {
return (SDLPRNDL *)obj;
} else {
return [SDLPRNDL valueOf:(NSString *)obj];
@@ -169,7 +169,7 @@
- (SDLTireStatus *)tirePressure {
NSObject *obj = [parameters objectForKey:NAMES_tirePressure];
- if ([obj isKindOfClass:SDLTireStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLTireStatus.class]) {
return (SDLTireStatus *)obj;
} else {
return [[SDLTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -198,7 +198,7 @@
- (SDLBeltStatus *)beltStatus {
NSObject *obj = [parameters objectForKey:NAMES_beltStatus];
- if ([obj isKindOfClass:SDLBeltStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLBeltStatus.class]) {
return (SDLBeltStatus *)obj;
} else {
return [[SDLBeltStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -215,7 +215,7 @@
- (SDLBodyInformation *)bodyInformation {
NSObject *obj = [parameters objectForKey:NAMES_bodyInformation];
- if ([obj isKindOfClass:SDLBodyInformation.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLBodyInformation.class]) {
return (SDLBodyInformation *)obj;
} else {
return [[SDLBodyInformation alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -232,7 +232,7 @@
- (SDLDeviceStatus *)deviceStatus {
NSObject *obj = [parameters objectForKey:NAMES_deviceStatus];
- if ([obj isKindOfClass:SDLDeviceStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLDeviceStatus.class]) {
return (SDLDeviceStatus *)obj;
} else {
return [[SDLDeviceStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -249,7 +249,7 @@
- (SDLVehicleDataEventStatus *)driverBraking {
NSObject *obj = [parameters objectForKey:NAMES_driverBraking];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -266,7 +266,7 @@
- (SDLWiperStatus *)wiperStatus {
NSObject *obj = [parameters objectForKey:NAMES_wiperStatus];
- if ([obj isKindOfClass:SDLWiperStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLWiperStatus.class]) {
return (SDLWiperStatus *)obj;
} else {
return [SDLWiperStatus valueOf:(NSString *)obj];
@@ -283,7 +283,7 @@
- (SDLHeadLampStatus *)headLampStatus {
NSObject *obj = [parameters objectForKey:NAMES_headLampStatus];
- if ([obj isKindOfClass:SDLHeadLampStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLHeadLampStatus.class]) {
return (SDLHeadLampStatus *)obj;
} else {
return [[SDLHeadLampStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -336,7 +336,7 @@
- (SDLECallInfo *)eCallInfo {
NSObject *obj = [parameters objectForKey:NAMES_eCallInfo];
- if ([obj isKindOfClass:SDLECallInfo.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLECallInfo.class]) {
return (SDLECallInfo *)obj;
} else {
return [[SDLECallInfo alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -353,7 +353,7 @@
- (SDLAirbagStatus *)airbagStatus {
NSObject *obj = [parameters objectForKey:NAMES_airbagStatus];
- if ([obj isKindOfClass:SDLAirbagStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLAirbagStatus.class]) {
return (SDLAirbagStatus *)obj;
} else {
return [[SDLAirbagStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -370,7 +370,7 @@
- (SDLEmergencyEvent *)emergencyEvent {
NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent];
- if ([obj isKindOfClass:SDLEmergencyEvent.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLEmergencyEvent.class]) {
return (SDLEmergencyEvent *)obj;
} else {
return [[SDLEmergencyEvent alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -387,7 +387,7 @@
- (SDLClusterModeStatus *)clusterModeStatus {
NSObject *obj = [parameters objectForKey:NAMES_clusterModeStatus];
- if ([obj isKindOfClass:SDLClusterModeStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLClusterModeStatus.class]) {
return (SDLClusterModeStatus *)obj;
} else {
return [[SDLClusterModeStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -404,7 +404,7 @@
- (SDLMyKey *)myKey {
NSObject *obj = [parameters objectForKey:NAMES_myKey];
- if ([obj isKindOfClass:SDLMyKey.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLMyKey.class]) {
return (SDLMyKey *)obj;
} else {
return [[SDLMyKey alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.m
index a2e2d1c18..44ed87b44 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.m
@@ -55,7 +55,7 @@
- (SDLAmbientLightStatus *)ambientLightSensorStatus {
NSObject *obj = [store objectForKey:NAMES_ambientLightSensorStatus];
- if ([obj isKindOfClass:SDLAmbientLightStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLAmbientLightStatus.class]) {
return (SDLAmbientLightStatus *)obj;
} else {
return [SDLAmbientLightStatus valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.m
index 89a70bca6..ef646f794 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.m
@@ -43,7 +43,7 @@
- (SDLImageType *)imageType {
NSObject *obj = [store objectForKey:NAMES_imageType];
- if ([obj isKindOfClass:SDLImageType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImageType.class]) {
return (SDLImageType *)obj;
} else {
return [SDLImageType valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.m
index c59ad6817..af4f15517 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.m
@@ -33,7 +33,7 @@
- (SDLImageFieldName *)name {
NSObject *obj = [store objectForKey:NAMES_name];
- if ([obj isKindOfClass:SDLImageFieldName.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImageFieldName.class]) {
return (SDLImageFieldName *)obj;
} else {
return [SDLImageFieldName valueOf:(NSString *)obj];
@@ -71,7 +71,7 @@
- (SDLImageResolution *)imageResolution {
NSObject *obj = [store objectForKey:NAMES_imageResolution];
- if ([obj isKindOfClass:SDLImageResolution.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImageResolution.class]) {
return (SDLImageResolution *)obj;
} else {
return [[SDLImageResolution alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.m
index 941e2cd56..896f3a99a 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.m
@@ -33,7 +33,7 @@
- (SDLLanguage *)language {
NSObject *obj = [store objectForKey:NAMES_language];
- if ([obj isKindOfClass:SDLLanguage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) {
return (SDLLanguage *)obj;
} else {
return [SDLLanguage valueOf:(NSString *)obj];
@@ -50,7 +50,7 @@
- (SDLKeyboardLayout *)keyboardLayout {
NSObject *obj = [store objectForKey:NAMES_keyboardLayout];
- if ([obj isKindOfClass:SDLKeyboardLayout.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLKeyboardLayout.class]) {
return (SDLKeyboardLayout *)obj;
} else {
return [SDLKeyboardLayout valueOf:(NSString *)obj];
@@ -67,7 +67,7 @@
- (SDLKeypressMode *)keypressMode {
NSObject *obj = [store objectForKey:NAMES_keypressMode];
- if ([obj isKindOfClass:SDLKeypressMode.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLKeypressMode.class]) {
return (SDLKeypressMode *)obj;
} else {
return [SDLKeypressMode valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.m
index d5a04f37e..ec4e5ef95 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.m
@@ -31,7 +31,7 @@
- (SDLVehicleDataStatus *)e911Override {
NSObject *obj = [store objectForKey:NAMES_e911Override];
- if ([obj isKindOfClass:SDLVehicleDataStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataStatus.class]) {
return (SDLVehicleDataStatus *)obj;
} else {
return [SDLVehicleDataStatus valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m
index 3cdaa07b4..5427cf871 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.m
@@ -31,7 +31,7 @@
- (SDLAppInterfaceUnregisteredReason *)reason {
NSObject *obj = [parameters objectForKey:NAMES_reason];
- if ([obj isKindOfClass:SDLAppInterfaceUnregisteredReason.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLAppInterfaceUnregisteredReason.class]) {
return (SDLAppInterfaceUnregisteredReason *)obj;
} else {
return [SDLAppInterfaceUnregisteredReason valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.m
index 4b7a86a44..c8d9797f2 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.m
@@ -32,7 +32,7 @@
- (SDLButtonName *)buttonName {
NSObject *obj = [parameters objectForKey:NAMES_buttonName];
- if ([obj isKindOfClass:SDLButtonName.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) {
return (SDLButtonName *)obj;
} else {
return [SDLButtonName valueOf:(NSString *)obj];
@@ -49,7 +49,7 @@
- (SDLButtonEventMode *)buttonEventMode {
NSObject *obj = [parameters objectForKey:NAMES_buttonEventMode];
- if ([obj isKindOfClass:SDLButtonEventMode.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLButtonEventMode.class]) {
return (SDLButtonEventMode *)obj;
} else {
return [SDLButtonEventMode valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.m
index cd95587c5..8926b7951 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.m
@@ -32,7 +32,7 @@
- (SDLButtonName *)buttonName {
NSObject *obj = [parameters objectForKey:NAMES_buttonName];
- if ([obj isKindOfClass:SDLButtonName.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) {
return (SDLButtonName *)obj;
} else {
return [SDLButtonName valueOf:(NSString *)obj];
@@ -49,7 +49,7 @@
- (SDLButtonPressMode *)buttonPressMode {
NSObject *obj = [parameters objectForKey:NAMES_buttonPressMode];
- if ([obj isKindOfClass:SDLButtonPressMode.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLButtonPressMode.class]) {
return (SDLButtonPressMode *)obj;
} else {
return [SDLButtonPressMode valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.m
index a1f0be087..f16023d42 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.m
@@ -43,7 +43,7 @@
- (SDLTriggerSource *)triggerSource {
NSObject *obj = [parameters objectForKey:NAMES_triggerSource];
- if ([obj isKindOfClass:SDLTriggerSource.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLTriggerSource.class]) {
return (SDLTriggerSource *)obj;
} else {
return [SDLTriggerSource valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.m
index 56005c72e..1a87075b3 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.m
@@ -31,7 +31,7 @@
- (SDLDriverDistractionState *)state {
NSObject *obj = [parameters objectForKey:NAMES_state];
- if ([obj isKindOfClass:SDLDriverDistractionState.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLDriverDistractionState.class]) {
return (SDLDriverDistractionState *)obj;
} else {
return [SDLDriverDistractionState valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.m
index cb2407ed7..e3dc0d7fc 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.m
@@ -33,7 +33,7 @@
- (SDLHMILevel *)hmiLevel {
NSObject *obj = [parameters objectForKey:NAMES_hmiLevel];
- if ([obj isKindOfClass:SDLHMILevel.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLHMILevel.class]) {
return (SDLHMILevel *)obj;
} else {
return [SDLHMILevel valueOf:(NSString *)obj];
@@ -50,7 +50,7 @@
- (SDLAudioStreamingState *)audioStreamingState {
NSObject *obj = [parameters objectForKey:NAMES_audioStreamingState];
- if ([obj isKindOfClass:SDLAudioStreamingState.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLAudioStreamingState.class]) {
return (SDLAudioStreamingState *)obj;
} else {
return [SDLAudioStreamingState valueOf:(NSString *)obj];
@@ -67,7 +67,7 @@
- (SDLSystemContext *)systemContext {
NSObject *obj = [parameters objectForKey:NAMES_systemContext];
- if ([obj isKindOfClass:SDLSystemContext.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSystemContext.class]) {
return (SDLSystemContext *)obj;
} else {
return [SDLSystemContext valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.m
index 5e5115c32..a70a7d06c 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.m
@@ -31,7 +31,7 @@
- (SDLKeyboardEvent *)event {
NSObject *obj = [parameters objectForKey:NAMES_event];
- if ([obj isKindOfClass:SDLKeyboardEvent.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLKeyboardEvent.class]) {
return (SDLKeyboardEvent *)obj;
} else {
return [SDLKeyboardEvent valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.m
index bb58b4c2f..216d0c4a5 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.m
@@ -31,7 +31,7 @@
- (SDLLanguage *)language {
NSObject *obj = [parameters objectForKey:NAMES_language];
- if ([obj isKindOfClass:SDLLanguage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) {
return (SDLLanguage *)obj;
} else {
return [SDLLanguage valueOf:(NSString *)obj];
@@ -48,7 +48,7 @@
- (SDLLanguage *)hmiDisplayLanguage {
NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguage];
- if ([obj isKindOfClass:SDLLanguage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) {
return (SDLLanguage *)obj;
} else {
return [SDLLanguage valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.m
index 6c228fb1b..fc9e39c00 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.m
@@ -33,7 +33,7 @@
- (SDLLockScreenStatus *)lockScreenStatus {
NSObject *obj = [parameters objectForKey:@"OnLockScreenStatus"];
- if ([obj isKindOfClass:SDLLockScreenStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLLockScreenStatus.class]) {
return (SDLLockScreenStatus *)obj;
} else {
return [SDLLockScreenStatus valueOf:(NSString *)obj];
@@ -50,7 +50,7 @@
- (SDLHMILevel *)hmiLevel {
NSObject *obj = [parameters objectForKey:@"hmilevel"];
- if ([obj isKindOfClass:SDLHMILevel.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLHMILevel.class]) {
return (SDLHMILevel *)obj;
} else {
return [SDLHMILevel valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.m
index 63cb35867..c5aff7569 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.m
@@ -32,7 +32,7 @@
- (SDLRequestType *)requestType {
NSObject *obj = [parameters objectForKey:NAMES_requestType];
- if ([obj isKindOfClass:SDLRequestType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLRequestType.class]) {
return (SDLRequestType *)obj;
} else {
return [SDLRequestType valueOf:(NSString *)obj];
@@ -73,7 +73,7 @@
- (SDLFileType *)fileType {
NSObject *obj = [parameters objectForKey:NAMES_fileType];
- if ([obj isKindOfClass:SDLFileType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLFileType.class]) {
return (SDLFileType *)obj;
} else {
return [SDLFileType valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.m
index ac9ad9a31..ee0dc1efc 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.m
@@ -31,7 +31,7 @@
- (SDLTBTState *)state {
NSObject *obj = [parameters objectForKey:NAMES_state];
- if ([obj isKindOfClass:SDLTBTState.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLTBTState.class]) {
return (SDLTBTState *)obj;
} else {
return [SDLTBTState valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.m
index 33f051134..e73c79603 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.m
@@ -32,7 +32,7 @@
- (SDLTouchType *)type {
NSObject *obj = [parameters objectForKey:NAMES_type];
- if ([obj isKindOfClass:SDLTouchType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLTouchType.class]) {
return (SDLTouchType *)obj;
} else {
return [SDLTouchType valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.m
index 838a730f1..3386ca450 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.m
@@ -45,7 +45,7 @@
- (SDLGPSData *)gps {
NSObject *obj = [parameters objectForKey:NAMES_gps];
- if ([obj isKindOfClass:SDLGPSData.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLGPSData.class]) {
return (SDLGPSData *)obj;
} else {
return [[SDLGPSData alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -98,7 +98,7 @@
- (SDLComponentVolumeStatus *)fuelLevel_State {
NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State];
- if ([obj isKindOfClass:SDLComponentVolumeStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLComponentVolumeStatus.class]) {
return (SDLComponentVolumeStatus *)obj;
} else {
return [SDLComponentVolumeStatus valueOf:(NSString *)obj];
@@ -151,7 +151,7 @@
- (SDLPRNDL *)prndl {
NSObject *obj = [parameters objectForKey:NAMES_prndl];
- if ([obj isKindOfClass:SDLPRNDL.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLPRNDL.class]) {
return (SDLPRNDL *)obj;
} else {
return [SDLPRNDL valueOf:(NSString *)obj];
@@ -168,7 +168,7 @@
- (SDLTireStatus *)tirePressure {
NSObject *obj = [parameters objectForKey:NAMES_tirePressure];
- if ([obj isKindOfClass:SDLTireStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLTireStatus.class]) {
return (SDLTireStatus *)obj;
} else {
return [[SDLTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -197,7 +197,7 @@
- (SDLBeltStatus *)beltStatus {
NSObject *obj = [parameters objectForKey:NAMES_beltStatus];
- if ([obj isKindOfClass:SDLBeltStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLBeltStatus.class]) {
return (SDLBeltStatus *)obj;
} else {
return [[SDLBeltStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -214,7 +214,7 @@
- (SDLBodyInformation *)bodyInformation {
NSObject *obj = [parameters objectForKey:NAMES_bodyInformation];
- if ([obj isKindOfClass:SDLBodyInformation.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLBodyInformation.class]) {
return (SDLBodyInformation *)obj;
} else {
return [[SDLBodyInformation alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -231,7 +231,7 @@
- (SDLDeviceStatus *)deviceStatus {
NSObject *obj = [parameters objectForKey:NAMES_deviceStatus];
- if ([obj isKindOfClass:SDLDeviceStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLDeviceStatus.class]) {
return (SDLDeviceStatus *)obj;
} else {
return [[SDLDeviceStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -248,7 +248,7 @@
- (SDLVehicleDataEventStatus *)driverBraking {
NSObject *obj = [parameters objectForKey:NAMES_driverBraking];
- if ([obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataEventStatus.class]) {
return (SDLVehicleDataEventStatus *)obj;
} else {
return [SDLVehicleDataEventStatus valueOf:(NSString *)obj];
@@ -265,7 +265,7 @@
- (SDLWiperStatus *)wiperStatus {
NSObject *obj = [parameters objectForKey:NAMES_wiperStatus];
- if ([obj isKindOfClass:SDLWiperStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLWiperStatus.class]) {
return (SDLWiperStatus *)obj;
} else {
return [SDLWiperStatus valueOf:(NSString *)obj];
@@ -282,7 +282,7 @@
- (SDLHeadLampStatus *)headLampStatus {
NSObject *obj = [parameters objectForKey:NAMES_headLampStatus];
- if ([obj isKindOfClass:SDLHeadLampStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLHeadLampStatus.class]) {
return (SDLHeadLampStatus *)obj;
} else {
return [[SDLHeadLampStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -335,7 +335,7 @@
- (SDLECallInfo *)eCallInfo {
NSObject *obj = [parameters objectForKey:NAMES_eCallInfo];
- if ([obj isKindOfClass:SDLECallInfo.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLECallInfo.class]) {
return (SDLECallInfo *)obj;
} else {
return [[SDLECallInfo alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -352,7 +352,7 @@
- (SDLAirbagStatus *)airbagStatus {
NSObject *obj = [parameters objectForKey:NAMES_airbagStatus];
- if ([obj isKindOfClass:SDLAirbagStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLAirbagStatus.class]) {
return (SDLAirbagStatus *)obj;
} else {
return [[SDLAirbagStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -369,7 +369,7 @@
- (SDLEmergencyEvent *)emergencyEvent {
NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent];
- if ([obj isKindOfClass:SDLEmergencyEvent.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLEmergencyEvent.class]) {
return (SDLEmergencyEvent *)obj;
} else {
return [[SDLEmergencyEvent alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -386,7 +386,7 @@
- (SDLClusterModeStatus *)clusterModeStatus {
NSObject *obj = [parameters objectForKey:NAMES_clusterModeStatus];
- if ([obj isKindOfClass:SDLClusterModeStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLClusterModeStatus.class]) {
return (SDLClusterModeStatus *)obj;
} else {
return [[SDLClusterModeStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -403,7 +403,7 @@
- (SDLMyKey *)myKey {
NSObject *obj = [parameters objectForKey:NAMES_myKey];
- if ([obj isKindOfClass:SDLMyKey.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLMyKey.class]) {
return (SDLMyKey *)obj;
} else {
return [[SDLMyKey alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.m
index 4caf5f6ee..67b0f05c3 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.m
@@ -80,7 +80,7 @@
- (SDLSamplingRate *)samplingRate {
NSObject *obj = [parameters objectForKey:NAMES_samplingRate];
- if ([obj isKindOfClass:SDLSamplingRate.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSamplingRate.class]) {
return (SDLSamplingRate *)obj;
} else {
return [SDLSamplingRate valueOf:(NSString *)obj];
@@ -109,7 +109,7 @@
- (SDLBitsPerSample *)bitsPerSample {
NSObject *obj = [parameters objectForKey:NAMES_bitsPerSample];
- if ([obj isKindOfClass:SDLBitsPerSample.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLBitsPerSample.class]) {
return (SDLBitsPerSample *)obj;
} else {
return [SDLBitsPerSample valueOf:(NSString *)obj];
@@ -126,7 +126,7 @@
- (SDLAudioType *)audioType {
NSObject *obj = [parameters objectForKey:NAMES_audioType];
- if ([obj isKindOfClass:SDLAudioType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLAudioType.class]) {
return (SDLAudioType *)obj;
} else {
return [SDLAudioType valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.m
index 5824794b0..f5eec2fa9 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.m
@@ -67,7 +67,7 @@
- (SDLInteractionMode *)interactionMode {
NSObject *obj = [parameters objectForKey:NAMES_interactionMode];
- if ([obj isKindOfClass:SDLInteractionMode.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLInteractionMode.class]) {
return (SDLInteractionMode *)obj;
} else {
return [SDLInteractionMode valueOf:(NSString *)obj];
@@ -171,7 +171,7 @@
- (SDLLayoutMode *)interactionLayout {
NSObject *obj = [parameters objectForKey:NAMES_interactionLayout];
- if ([obj isKindOfClass:SDLLayoutMode.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLLayoutMode.class]) {
return (SDLLayoutMode *)obj;
} else {
return [SDLLayoutMode valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.m
index bdd4254b5..ae1c5e14c 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.m
@@ -56,7 +56,7 @@
- (SDLTriggerSource *)triggerSource {
NSObject *obj = [parameters objectForKey:NAMES_triggerSource];
- if ([obj isKindOfClass:SDLTriggerSource.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLTriggerSource.class]) {
return (SDLTriggerSource *)obj;
} else {
return [SDLTriggerSource valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.m
index 9ce9a64b9..560094c2e 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.m
@@ -44,7 +44,7 @@
- (SDLHMIPermissions *)hmiPermissions {
NSObject *obj = [store objectForKey:NAMES_hmiPermissions];
- if ([obj isKindOfClass:SDLHMIPermissions.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLHMIPermissions.class]) {
return (SDLHMIPermissions *)obj;
} else {
return [[SDLHMIPermissions alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -61,7 +61,7 @@
- (SDLParameterPermissions *)parameterPermissions {
NSObject *obj = [store objectForKey:NAMES_parameterPermissions];
- if ([obj isKindOfClass:SDLParameterPermissions.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLParameterPermissions.class]) {
return (SDLParameterPermissions *)obj;
} else {
return [[SDLParameterPermissions alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.m
index 37547fd3c..69d83edcd 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.m
@@ -43,7 +43,7 @@
- (SDLFileType *)fileType {
NSObject *obj = [parameters objectForKey:NAMES_fileType];
- if ([obj isKindOfClass:SDLFileType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLFileType.class]) {
return (SDLFileType *)obj;
} else {
return [SDLFileType valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.m
index 573521237..606781070 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.m
@@ -67,7 +67,7 @@
- (SDLResult *)resultCode {
NSObject *obj = [parameters objectForKey:NAMES_resultCode];
- if ([obj isKindOfClass:SDLResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLResult.class]) {
return (SDLResult *)obj;
} else {
return [SDLResult valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.m
index ee4fead1c..b10917f94 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.m
@@ -36,7 +36,7 @@
- (SDLSyncMsgVersion *)syncMsgVersion {
NSObject *obj = [parameters objectForKey:NAMES_syncMsgVersion];
- if ([obj isKindOfClass:SDLSyncMsgVersion.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSyncMsgVersion.class]) {
return (SDLSyncMsgVersion *)obj;
} else {
return [[SDLSyncMsgVersion alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -122,7 +122,7 @@
- (SDLLanguage *)languageDesired {
NSObject *obj = [parameters objectForKey:NAMES_languageDesired];
- if ([obj isKindOfClass:SDLLanguage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) {
return (SDLLanguage *)obj;
} else {
return [SDLLanguage valueOf:(NSString *)obj];
@@ -139,7 +139,7 @@
- (SDLLanguage *)hmiDisplayLanguageDesired {
NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguageDesired];
- if ([obj isKindOfClass:SDLLanguage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) {
return (SDLLanguage *)obj;
} else {
return [SDLLanguage valueOf:(NSString *)obj];
@@ -189,7 +189,7 @@
- (SDLDeviceInfo *)deviceInfo {
NSObject *obj = [parameters objectForKey:NAMES_deviceInfo];
- if ([obj isKindOfClass:SDLDeviceInfo.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLDeviceInfo.class]) {
return (SDLDeviceInfo *)obj;
} else {
return [[SDLDeviceInfo alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m
index 875d44e53..18356c34f 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.m
@@ -44,7 +44,7 @@
- (SDLSyncMsgVersion *)syncMsgVersion {
NSObject *obj = [parameters objectForKey:NAMES_syncMsgVersion];
- if ([obj isKindOfClass:SDLSyncMsgVersion.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSyncMsgVersion.class]) {
return (SDLSyncMsgVersion *)obj;
} else {
return [[SDLSyncMsgVersion alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -61,7 +61,7 @@
- (SDLLanguage *)language {
NSObject *obj = [parameters objectForKey:NAMES_language];
- if ([obj isKindOfClass:SDLLanguage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) {
return (SDLLanguage *)obj;
} else {
return [SDLLanguage valueOf:(NSString *)obj];
@@ -78,7 +78,7 @@
- (SDLLanguage *)hmiDisplayLanguage {
NSObject *obj = [parameters objectForKey:NAMES_hmiDisplayLanguage];
- if ([obj isKindOfClass:SDLLanguage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLLanguage.class]) {
return (SDLLanguage *)obj;
} else {
return [SDLLanguage valueOf:(NSString *)obj];
@@ -95,7 +95,7 @@
- (SDLDisplayCapabilities *)displayCapabilities {
NSObject *obj = [parameters objectForKey:NAMES_displayCapabilities];
- if ([obj isKindOfClass:SDLDisplayCapabilities.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLDisplayCapabilities.class]) {
return (SDLDisplayCapabilities *)obj;
} else {
return [[SDLDisplayCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -154,7 +154,7 @@
- (SDLPresetBankCapabilities *)presetBankCapabilities {
NSObject *obj = [parameters objectForKey:NAMES_presetBankCapabilities];
- if ([obj isKindOfClass:SDLPresetBankCapabilities.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLPresetBankCapabilities.class]) {
return (SDLPresetBankCapabilities *)obj;
} else {
return [[SDLPresetBankCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -276,7 +276,7 @@
- (SDLVehicleType *)vehicleType {
NSObject *obj = [parameters objectForKey:NAMES_vehicleType];
- if ([obj isKindOfClass:SDLVehicleType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleType.class]) {
return (SDLVehicleType *)obj;
} else {
return [[SDLVehicleType alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -305,7 +305,7 @@
- (SDLHMICapabilities *)hmiCapabilities {
NSObject *obj = [parameters objectForKey:NAMES_hmiCapabilities];
- if ([obj isKindOfClass:[SDLHMICapabilities class]]) {
+ if (obj == nil || [obj isKindOfClass:[SDLHMICapabilities class]]) {
return (SDLHMICapabilities *)obj;
} else {
return [[SDLHMICapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.m
index 3e3668cf5..1debff302 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.m
@@ -32,7 +32,7 @@
- (SDLImageResolution *)resolution {
NSObject *obj = [store objectForKey:NAMES_resolution];
- if ([obj isKindOfClass:SDLImageResolution.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImageResolution.class]) {
return (SDLImageResolution *)obj;
} else {
return [[SDLImageResolution alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -49,7 +49,7 @@
- (SDLTouchEventCapabilities *)touchEventAvailable {
NSObject *obj = [store objectForKey:NAMES_touchEventAvailable];
- if ([obj isKindOfClass:SDLTouchEventCapabilities.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLTouchEventCapabilities.class]) {
return (SDLTouchEventCapabilities *)obj;
} else {
return [[SDLTouchEventCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.m
index 518193f23..cbf9d6cd3 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSendLocation.m
@@ -97,7 +97,7 @@
- (SDLImage *)locationImage {
id obj = parameters[NAMES_locationImage];
- if ([obj isKindOfClass:[SDLImage class]]) {
+ if (obj == nil || [obj isKindOfClass:[SDLImage class]]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.m
index 9be1074c7..fde37062e 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.m
@@ -35,7 +35,7 @@
- (SDLDisplayCapabilities *)displayCapabilities {
NSObject *obj = [parameters objectForKey:NAMES_displayCapabilities];
- if ([obj isKindOfClass:SDLDisplayCapabilities.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLDisplayCapabilities.class]) {
return (SDLDisplayCapabilities *)obj;
} else {
return [[SDLDisplayCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -94,7 +94,7 @@
- (SDLPresetBankCapabilities *)presetBankCapabilities {
NSObject *obj = [parameters objectForKey:NAMES_presetBankCapabilities];
- if ([obj isKindOfClass:SDLPresetBankCapabilities.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLPresetBankCapabilities.class]) {
return (SDLPresetBankCapabilities *)obj;
} else {
return [[SDLPresetBankCapabilities alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.m
index 305adaeb3..ba9749e3e 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.m
@@ -122,7 +122,7 @@
- (SDLImage *)menuIcon {
NSObject *obj = [parameters objectForKey:NAMES_menuIcon];
- if ([obj isKindOfClass:SDLImage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -139,7 +139,7 @@
- (SDLKeyboardProperties *)keyboardProperties {
NSObject *obj = [parameters objectForKey:NAMES_keyboardProperties];
- if ([obj isKindOfClass:SDLKeyboardProperties.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLKeyboardProperties.class]) {
return (SDLKeyboardProperties *)obj;
} else {
return [[SDLKeyboardProperties alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.m
index 40d31f50f..325d0e347 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.m
@@ -33,7 +33,7 @@
- (SDLStartTime *)startTime {
NSObject *obj = [parameters objectForKey:NAMES_startTime];
- if ([obj isKindOfClass:SDLStartTime.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLStartTime.class]) {
return (SDLStartTime *)obj;
} else {
return [[SDLStartTime alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -50,7 +50,7 @@
- (SDLStartTime *)endTime {
NSObject *obj = [parameters objectForKey:NAMES_endTime];
- if ([obj isKindOfClass:SDLStartTime.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLStartTime.class]) {
return (SDLStartTime *)obj;
} else {
return [[SDLStartTime alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -67,7 +67,7 @@
- (SDLUpdateMode *)updateMode {
NSObject *obj = [parameters objectForKey:NAMES_updateMode];
- if ([obj isKindOfClass:SDLUpdateMode.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLUpdateMode.class]) {
return (SDLUpdateMode *)obj;
} else {
return [SDLUpdateMode valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.m
index 948604dae..933167159 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.m
@@ -82,7 +82,7 @@
- (SDLTextAlignment *)alignment {
NSObject *obj = [parameters objectForKey:NAMES_alignment];
- if ([obj isKindOfClass:SDLTextAlignment.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLTextAlignment.class]) {
return (SDLTextAlignment *)obj;
} else {
return [SDLTextAlignment valueOf:(NSString *)obj];
@@ -135,7 +135,7 @@
- (SDLImage *)graphic {
NSObject *obj = [parameters objectForKey:NAMES_graphic];
- if ([obj isKindOfClass:SDLImage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -152,7 +152,7 @@
- (SDLImage *)secondaryGraphic {
NSObject *obj = [parameters objectForKey:NAMES_secondaryGraphic];
- if ([obj isKindOfClass:SDLImage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.m
index 9a1f3ee46..c3f87f071 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.m
@@ -93,7 +93,7 @@
- (SDLImage *)turnIcon {
NSObject *obj = [parameters objectForKey:NAMES_turnIcon];
- if ([obj isKindOfClass:SDLImage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -110,7 +110,7 @@
- (SDLImage *)nextTurnIcon {
NSObject *obj = [parameters objectForKey:NAMES_nextTurnIcon];
- if ([obj isKindOfClass:SDLImage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.m
index 79a977e05..87826f32b 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.m
@@ -31,7 +31,7 @@
- (SDLComponentVolumeStatus *)status {
NSObject *obj = [store objectForKey:NAMES_status];
- if ([obj isKindOfClass:SDLComponentVolumeStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLComponentVolumeStatus.class]) {
return (SDLComponentVolumeStatus *)obj;
} else {
return [SDLComponentVolumeStatus valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.m
index e72f91d7c..a93ce510c 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.m
@@ -33,7 +33,7 @@
- (SDLSoftButtonType *)type {
NSObject *obj = [store objectForKey:NAMES_type];
- if ([obj isKindOfClass:SDLSoftButtonType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSoftButtonType.class]) {
return (SDLSoftButtonType *)obj;
} else {
return [SDLSoftButtonType valueOf:(NSString *)obj];
@@ -62,7 +62,7 @@
- (SDLImage *)image {
NSObject *obj = [store objectForKey:NAMES_image];
- if ([obj isKindOfClass:SDLImage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -103,7 +103,7 @@
- (SDLSystemAction *)systemAction {
NSObject *obj = [store objectForKey:NAMES_systemAction];
- if ([obj isKindOfClass:SDLSystemAction.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSystemAction.class]) {
return (SDLSystemAction *)obj;
} else {
return [SDLSystemAction valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.m
index cbf56af4d..58a28a797 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.m
@@ -32,7 +32,7 @@
- (SDLButtonName *)buttonName {
NSObject *obj = [parameters objectForKey:NAMES_buttonName];
- if ([obj isKindOfClass:SDLButtonName.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) {
return (SDLButtonName *)obj;
} else {
return [SDLButtonName valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m
index a7ca64198..5afa5f1be 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.m
@@ -32,7 +32,7 @@
- (SDLVehicleDataResult *)gps {
NSObject *obj = [parameters objectForKey:NAMES_gps];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -49,7 +49,7 @@
- (SDLVehicleDataResult *)speed {
NSObject *obj = [parameters objectForKey:NAMES_speed];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -66,7 +66,7 @@
- (SDLVehicleDataResult *)rpm {
NSObject *obj = [parameters objectForKey:NAMES_rpm];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -83,7 +83,7 @@
- (SDLVehicleDataResult *)fuelLevel {
NSObject *obj = [parameters objectForKey:NAMES_fuelLevel];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -100,7 +100,7 @@
- (SDLVehicleDataResult *)fuelLevel_State {
NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -117,7 +117,7 @@
- (SDLVehicleDataResult *)instantFuelConsumption {
NSObject *obj = [parameters objectForKey:NAMES_instantFuelConsumption];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -134,7 +134,7 @@
- (SDLVehicleDataResult *)externalTemperature {
NSObject *obj = [parameters objectForKey:NAMES_externalTemperature];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -151,7 +151,7 @@
- (SDLVehicleDataResult *)prndl {
NSObject *obj = [parameters objectForKey:NAMES_prndl];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -168,7 +168,7 @@
- (SDLVehicleDataResult *)tirePressure {
NSObject *obj = [parameters objectForKey:NAMES_tirePressure];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -185,7 +185,7 @@
- (SDLVehicleDataResult *)odometer {
NSObject *obj = [parameters objectForKey:NAMES_odometer];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -202,7 +202,7 @@
- (SDLVehicleDataResult *)beltStatus {
NSObject *obj = [parameters objectForKey:NAMES_beltStatus];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -219,7 +219,7 @@
- (SDLVehicleDataResult *)bodyInformation {
NSObject *obj = [parameters objectForKey:NAMES_bodyInformation];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -236,7 +236,7 @@
- (SDLVehicleDataResult *)deviceStatus {
NSObject *obj = [parameters objectForKey:NAMES_deviceStatus];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -253,7 +253,7 @@
- (SDLVehicleDataResult *)driverBraking {
NSObject *obj = [parameters objectForKey:NAMES_driverBraking];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -270,7 +270,7 @@
- (SDLVehicleDataResult *)wiperStatus {
NSObject *obj = [parameters objectForKey:NAMES_wiperStatus];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -287,7 +287,7 @@
- (SDLVehicleDataResult *)headLampStatus {
NSObject *obj = [parameters objectForKey:NAMES_headLampStatus];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -304,7 +304,7 @@
- (SDLVehicleDataResult *)engineTorque {
NSObject *obj = [parameters objectForKey:NAMES_engineTorque];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -321,7 +321,7 @@
- (SDLVehicleDataResult *)accPedalPosition {
NSObject *obj = [parameters objectForKey:NAMES_accPedalPosition];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -338,7 +338,7 @@
- (SDLVehicleDataResult *)steeringWheelAngle {
NSObject *obj = [parameters objectForKey:NAMES_steeringWheelAngle];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -355,7 +355,7 @@
- (SDLVehicleDataResult *)eCallInfo {
NSObject *obj = [parameters objectForKey:NAMES_eCallInfo];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -372,7 +372,7 @@
- (SDLVehicleDataResult *)airbagStatus {
NSObject *obj = [parameters objectForKey:NAMES_airbagStatus];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -389,7 +389,7 @@
- (SDLVehicleDataResult *)emergencyEvent {
NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -406,7 +406,7 @@
- (SDLVehicleDataResult *)clusterModes {
NSObject *obj = [parameters objectForKey:NAMES_clusterModes];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -423,7 +423,7 @@
- (SDLVehicleDataResult *)myKey {
NSObject *obj = [parameters objectForKey:NAMES_myKey];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.m
index 5fb7218b2..836b44447 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.m
@@ -32,7 +32,7 @@
- (SDLRequestType *)requestType {
NSObject *obj = [parameters objectForKey:NAMES_requestType];
- if ([obj isKindOfClass:SDLRequestType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLRequestType.class]) {
return (SDLRequestType *)obj;
} else {
return [SDLRequestType valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.m
index da3844a76..7e45413eb 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.m
@@ -43,7 +43,7 @@
- (SDLSpeechCapabilities *)type {
NSObject *obj = [store objectForKey:NAMES_type];
- if ([obj isKindOfClass:SDLSpeechCapabilities.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSpeechCapabilities.class]) {
return (SDLSpeechCapabilities *)obj;
} else {
return [SDLSpeechCapabilities valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.m
index 08261e573..926d258f1 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.m
@@ -32,7 +32,7 @@
- (SDLTextFieldName *)name {
NSObject *obj = [store objectForKey:NAMES_name];
- if ([obj isKindOfClass:SDLTextFieldName.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLTextFieldName.class]) {
return (SDLTextFieldName *)obj;
} else {
return [SDLTextFieldName valueOf:(NSString *)obj];
@@ -49,7 +49,7 @@
- (SDLCharacterSet *)characterSet {
NSObject *obj = [store objectForKey:NAMES_characterSet];
- if ([obj isKindOfClass:SDLCharacterSet.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLCharacterSet.class]) {
return (SDLCharacterSet *)obj;
} else {
return [SDLCharacterSet valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.m
index 146af79c9..c2768565a 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.m
@@ -32,7 +32,7 @@
- (SDLWarningLightStatus *)pressureTelltale {
NSObject *obj = [store objectForKey:NAMES_pressureTelltale];
- if ([obj isKindOfClass:SDLWarningLightStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLWarningLightStatus.class]) {
return (SDLWarningLightStatus *)obj;
} else {
return [SDLWarningLightStatus valueOf:(NSString *)obj];
@@ -49,7 +49,7 @@
- (SDLSingleTireStatus *)leftFront {
NSObject *obj = [store objectForKey:NAMES_leftFront];
- if ([obj isKindOfClass:SDLSingleTireStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) {
return (SDLSingleTireStatus *)obj;
} else {
return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -66,7 +66,7 @@
- (SDLSingleTireStatus *)rightFront {
NSObject *obj = [store objectForKey:NAMES_rightFront];
- if ([obj isKindOfClass:SDLSingleTireStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) {
return (SDLSingleTireStatus *)obj;
} else {
return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -83,7 +83,7 @@
- (SDLSingleTireStatus *)leftRear {
NSObject *obj = [store objectForKey:NAMES_leftRear];
- if ([obj isKindOfClass:SDLSingleTireStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) {
return (SDLSingleTireStatus *)obj;
} else {
return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -100,7 +100,7 @@
- (SDLSingleTireStatus *)rightRear {
NSObject *obj = [store objectForKey:NAMES_rightRear];
- if ([obj isKindOfClass:SDLSingleTireStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) {
return (SDLSingleTireStatus *)obj;
} else {
return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -117,7 +117,7 @@
- (SDLSingleTireStatus *)innerLeftRear {
NSObject *obj = [store objectForKey:NAMES_innerLeftRear];
- if ([obj isKindOfClass:SDLSingleTireStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) {
return (SDLSingleTireStatus *)obj;
} else {
return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -134,7 +134,7 @@
- (SDLSingleTireStatus *)innerRightRear {
NSObject *obj = [store objectForKey:NAMES_innerRightRear];
- if ([obj isKindOfClass:SDLSingleTireStatus.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLSingleTireStatus.class]) {
return (SDLSingleTireStatus *)obj;
} else {
return [[SDLSingleTireStatus alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.m
index e807f3aa6..875fa2e73 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.m
@@ -43,7 +43,7 @@
- (SDLImage *)turnIcon {
NSObject *obj = [store objectForKey:NAMES_turnIcon];
- if ([obj isKindOfClass:SDLImage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m
index 5a5d126bf..9853fa9da 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m
@@ -32,7 +32,7 @@
- (SDLButtonName *)buttonName {
NSObject *obj = [parameters objectForKey:NAMES_buttonName];
- if ([obj isKindOfClass:SDLButtonName.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLButtonName.class]) {
return (SDLButtonName *)obj;
} else {
return [SDLButtonName valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m
index bdc2e3a80..ec4916447 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.m
@@ -32,7 +32,7 @@
- (SDLVehicleDataResult *)gps {
NSObject *obj = [parameters objectForKey:NAMES_gps];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -49,7 +49,7 @@
- (SDLVehicleDataResult *)speed {
NSObject *obj = [parameters objectForKey:NAMES_speed];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -66,7 +66,7 @@
- (SDLVehicleDataResult *)rpm {
NSObject *obj = [parameters objectForKey:NAMES_rpm];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -83,7 +83,7 @@
- (SDLVehicleDataResult *)fuelLevel {
NSObject *obj = [parameters objectForKey:NAMES_fuelLevel];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -100,7 +100,7 @@
- (SDLVehicleDataResult *)fuelLevel_State {
NSObject *obj = [parameters objectForKey:NAMES_fuelLevel_State];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -117,7 +117,7 @@
- (SDLVehicleDataResult *)instantFuelConsumption {
NSObject *obj = [parameters objectForKey:NAMES_instantFuelConsumption];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -134,7 +134,7 @@
- (SDLVehicleDataResult *)externalTemperature {
NSObject *obj = [parameters objectForKey:NAMES_externalTemperature];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -151,7 +151,7 @@
- (SDLVehicleDataResult *)prndl {
NSObject *obj = [parameters objectForKey:NAMES_prndl];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -168,7 +168,7 @@
- (SDLVehicleDataResult *)tirePressure {
NSObject *obj = [parameters objectForKey:NAMES_tirePressure];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -185,7 +185,7 @@
- (SDLVehicleDataResult *)odometer {
NSObject *obj = [parameters objectForKey:NAMES_odometer];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -202,7 +202,7 @@
- (SDLVehicleDataResult *)beltStatus {
NSObject *obj = [parameters objectForKey:NAMES_beltStatus];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -219,7 +219,7 @@
- (SDLVehicleDataResult *)bodyInformation {
NSObject *obj = [parameters objectForKey:NAMES_bodyInformation];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -236,7 +236,7 @@
- (SDLVehicleDataResult *)deviceStatus {
NSObject *obj = [parameters objectForKey:NAMES_deviceStatus];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -253,7 +253,7 @@
- (SDLVehicleDataResult *)driverBraking {
NSObject *obj = [parameters objectForKey:NAMES_driverBraking];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -270,7 +270,7 @@
- (SDLVehicleDataResult *)wiperStatus {
NSObject *obj = [parameters objectForKey:NAMES_wiperStatus];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -287,7 +287,7 @@
- (SDLVehicleDataResult *)headLampStatus {
NSObject *obj = [parameters objectForKey:NAMES_headLampStatus];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -304,7 +304,7 @@
- (SDLVehicleDataResult *)engineTorque {
NSObject *obj = [parameters objectForKey:NAMES_engineTorque];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -321,7 +321,7 @@
- (SDLVehicleDataResult *)accPedalPosition {
NSObject *obj = [parameters objectForKey:NAMES_accPedalPosition];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -338,7 +338,7 @@
- (SDLVehicleDataResult *)steeringWheelAngle {
NSObject *obj = [parameters objectForKey:NAMES_steeringWheelAngle];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -355,7 +355,7 @@
- (SDLVehicleDataResult *)eCallInfo {
NSObject *obj = [parameters objectForKey:NAMES_eCallInfo];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -372,7 +372,7 @@
- (SDLVehicleDataResult *)airbagStatus {
NSObject *obj = [parameters objectForKey:NAMES_airbagStatus];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -389,7 +389,7 @@
- (SDLVehicleDataResult *)emergencyEvent {
NSObject *obj = [parameters objectForKey:NAMES_emergencyEvent];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -406,7 +406,7 @@
- (SDLVehicleDataResult *)clusterModes {
NSObject *obj = [parameters objectForKey:NAMES_clusterModes];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
@@ -423,7 +423,7 @@
- (SDLVehicleDataResult *)myKey {
NSObject *obj = [parameters objectForKey:NAMES_myKey];
- if ([obj isKindOfClass:SDLVehicleDataResult.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResult.class]) {
return (SDLVehicleDataResult *)obj;
} else {
return [[SDLVehicleDataResult alloc] initWithDictionary:(NSMutableDictionary *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.m
index 6cc467188..3a0849f87 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.m
@@ -32,7 +32,7 @@
- (SDLVehicleDataType *)dataType {
NSObject *obj = [store objectForKey:NAMES_dataType];
- if ([obj isKindOfClass:SDLVehicleDataType.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataType.class]) {
return (SDLVehicleDataType *)obj;
} else {
return [SDLVehicleDataType valueOf:(NSString *)obj];
@@ -49,7 +49,7 @@
- (SDLVehicleDataResultCode *)resultCode {
NSObject *obj = [store objectForKey:NAMES_resultCode];
- if ([obj isKindOfClass:SDLVehicleDataResultCode.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLVehicleDataResultCode.class]) {
return (SDLVehicleDataResultCode *)obj;
} else {
return [SDLVehicleDataResultCode valueOf:(NSString *)obj];
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.m
index 09ffd7b56..4ed2c1409 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.m
@@ -43,7 +43,7 @@
- (SDLImage *)image {
NSObject *obj = [store objectForKey:NAMES_image];
- if ([obj isKindOfClass:SDLImage.class]) {
+ if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];