diff options
author | BrettyWhite <geekman3454@protonmail.com> | 2019-07-15 11:24:07 -0400 |
---|---|---|
committer | BrettyWhite <geekman3454@protonmail.com> | 2019-07-15 11:24:07 -0400 |
commit | 0b2cc3d5935b4cb85ae46a20ffadabf796b449b0 (patch) | |
tree | 86283b3e290740e367b60b9ac468948f342816eb /SmartDeviceLink/SDLUnpublishAppService.m | |
parent | e6ca13d345381f9729a2ee52d252b8dcdf7c1c25 (diff) | |
download | sdl_ios-0b2cc3d5935b4cb85ae46a20ffadabf796b449b0.tar.gz |
start of unpublish app service
Diffstat (limited to 'SmartDeviceLink/SDLUnpublishAppService.m')
-rw-r--r-- | SmartDeviceLink/SDLUnpublishAppService.m | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLUnpublishAppService.m b/SmartDeviceLink/SDLUnpublishAppService.m new file mode 100644 index 000000000..fe51bb82c --- /dev/null +++ b/SmartDeviceLink/SDLUnpublishAppService.m @@ -0,0 +1,38 @@ +// +// SDLUnpublishAppService.m +// SmartDeviceLink +// +// Created by Bretty White on 7/15/19. +// Copyright © 2019 smartdevicelink. All rights reserved. +// + +#import "NSMutableDictionary+Store.h" +#import "SDLUnpublishAppService.h" +#import "SDLRPCFunctionNames.h" +#import "SDLRPCParameterNames.h" + +NS_ASSUME_NONNULL_BEGIN + +@implementation SDLUnpublishAppService + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +- (instancetype)init { + if (self = [super initWithName:SDLRPCFunctionNameUnpublishAppService]) { + } + return self; +} +#pragma clang diagnostic pop + + +- (void)setServiceID:(NSString *)serviceID { + [self.parameters sdl_setObject:serviceID forName:SDLRPCParameterNameServiceID]; +} + +- (NSString *)serviceID { + return [self.parameters sdl_objectForName:SDLRPCParameterNameServiceID ofClass:NSString.class error:nil]; +} + +@end + +NS_ASSUME_NONNULL_END |