summaryrefslogtreecommitdiff
path: root/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m
diff options
context:
space:
mode:
authorJoel Fischer <joel@livioradio.com>2015-03-04 15:41:34 -0500
committerJoel Fischer <joel@livioradio.com>2015-03-04 16:32:21 -0500
commitaea65586bb1817cfc9c6b47af273ac6498a27df6 (patch)
tree009a43eb5a0475df151df9f46951cb2222d69db6 /SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m
parent5f4faaa23384a4ae1f021cb65e11b2f01200e872 (diff)
parent483e2b0a7bf15f1e62fbfa8fb65844b93b2b3909 (diff)
downloadsdl_ios-aea65586bb1817cfc9c6b47af273ac6498a27df6.tar.gz
Merge branch 'feature/cocoapods-distribution' into develop
Conflicts: SmartDeviceLink-iOS/SmartDeviceLink/SDLAddCommand.h SmartDeviceLink-iOS/SmartDeviceLink/SDLAirbagStatus.h SmartDeviceLink-iOS/SmartDeviceLink/SDLAudioPassThruCapabilities.h SmartDeviceLink-iOS/SmartDeviceLink/SDLBeltStatus.h SmartDeviceLink-iOS/SmartDeviceLink/SDLBodyInformation.h SmartDeviceLink-iOS/SmartDeviceLink/SDLButtonCapabilities.h SmartDeviceLink-iOS/SmartDeviceLink/SDLChangeRegistration.h SmartDeviceLink-iOS/SmartDeviceLink/SDLChoice.h SmartDeviceLink-iOS/SmartDeviceLink/SDLClusterModeStatus.h SmartDeviceLink-iOS/SmartDeviceLink/SDLDIDResult.h SmartDeviceLink-iOS/SmartDeviceLink/SDLDeviceStatus.h SmartDeviceLink-iOS/SmartDeviceLink/SDLDisplayCapabilities.h SmartDeviceLink-iOS/SmartDeviceLink/SDLECallInfo.h SmartDeviceLink-iOS/SmartDeviceLink/SDLEmergencyEvent.h SmartDeviceLink-iOS/SmartDeviceLink/SDLGPSData.h SmartDeviceLink-iOS/SmartDeviceLink/SDLGetVehicleDataResponse.h SmartDeviceLink-iOS/SmartDeviceLink/SDLHeadLampStatus.h SmartDeviceLink-iOS/SmartDeviceLink/SDLImage.h SmartDeviceLink-iOS/SmartDeviceLink/SDLImageField.h SmartDeviceLink-iOS/SmartDeviceLink/SDLKeyboardProperties.h SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenManager.h SmartDeviceLink-iOS/SmartDeviceLink/SDLLockScreenStatus.h SmartDeviceLink-iOS/SmartDeviceLink/SDLMyKey.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnAppInterfaceUnregistered.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonEvent.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnButtonPress.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnCommand.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnDriverDistraction.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnHMIStatus.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnKeyboardInput.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLanguageChange.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnLockScreenStatus.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnSystemRequest.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTBTClientState.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnTouchEvent.h SmartDeviceLink-iOS/SmartDeviceLink/SDLOnVehicleData.h SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformAudioPassThru.h SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteraction.h SmartDeviceLink-iOS/SmartDeviceLink/SDLPerformInteractionResponse.h SmartDeviceLink-iOS/SmartDeviceLink/SDLPermissionItem.h SmartDeviceLink-iOS/SmartDeviceLink/SDLProxyListener.h SmartDeviceLink-iOS/SmartDeviceLink/SDLPutFile.h SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCRequestFactory.h SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCResponse.h SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterface.h SmartDeviceLink-iOS/SmartDeviceLink/SDLRegisterAppInterfaceResponse.h SmartDeviceLink-iOS/SmartDeviceLink/SDLScreenParams.h SmartDeviceLink-iOS/SmartDeviceLink/SDLSetDisplayLayoutResponse.h SmartDeviceLink-iOS/SmartDeviceLink/SDLSetGlobalProperties.h SmartDeviceLink-iOS/SmartDeviceLink/SDLSetMediaClockTimer.h SmartDeviceLink-iOS/SmartDeviceLink/SDLShow.h SmartDeviceLink-iOS/SmartDeviceLink/SDLShowConstantTBT.h SmartDeviceLink-iOS/SmartDeviceLink/SDLSingleTireStatus.h SmartDeviceLink-iOS/SmartDeviceLink/SDLSoftButton.h SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeButton.h SmartDeviceLink-iOS/SmartDeviceLink/SDLSubscribeVehicleDataResponse.h SmartDeviceLink-iOS/SmartDeviceLink/SDLSystemRequest.h SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunk.h SmartDeviceLink-iOS/SmartDeviceLink/SDLTTSChunkFactory.h SmartDeviceLink-iOS/SmartDeviceLink/SDLTextField.h SmartDeviceLink-iOS/SmartDeviceLink/SDLTireStatus.h SmartDeviceLink-iOS/SmartDeviceLink/SDLTurn.h SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.h SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeVehicleDataResponse.h SmartDeviceLink-iOS/SmartDeviceLink/SDLVehicleDataResult.h SmartDeviceLink-iOS/SmartDeviceLink/SDLVrHelpItem.h
Diffstat (limited to 'SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m')
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m38
1 files changed, 38 insertions, 0 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m
new file mode 100644
index 000000000..3c9880cc5
--- /dev/null
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLUnsubscribeButton.m
@@ -0,0 +1,38 @@
+// SDLUnsubscribeButton.m
+//
+// Copyright (c) 2014 Ford Motor Company. All rights reserved.
+
+#import "SDLUnsubscribeButton.h"
+
+#import "SDLNames.h"
+
+@implementation SDLUnsubscribeButton
+
+-(id) init {
+ if (self = [super initWithName:NAMES_UnsubscribeButton]) {}
+ return self;
+}
+
+-(id) initWithDictionary:(NSMutableDictionary*) dict {
+ if (self = [super initWithDictionary:dict]) {}
+ return self;
+}
+
+-(void) setButtonName:(SDLButtonName*) buttonName {
+ if (buttonName != nil) {
+ [parameters setObject:buttonName forKey:NAMES_buttonName];
+ } else {
+ [parameters removeObjectForKey:NAMES_buttonName];
+ }
+}
+
+-(SDLButtonName*) buttonName {
+ NSObject* obj = [parameters objectForKey:NAMES_buttonName];
+ if ([obj isKindOfClass:SDLButtonName.class]) {
+ return (SDLButtonName*)obj;
+ } else {
+ return [SDLButtonName valueOf:(NSString*)obj];
+ }
+}
+
+@end