summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLOnAppServiceData.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLOnAppServiceData.m')
-rw-r--r--SmartDeviceLink/SDLOnAppServiceData.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLOnAppServiceData.m b/SmartDeviceLink/SDLOnAppServiceData.m
index b58c78a7c..aac381039 100644
--- a/SmartDeviceLink/SDLOnAppServiceData.m
+++ b/SmartDeviceLink/SDLOnAppServiceData.m
@@ -10,6 +10,8 @@
#import "NSMutableDictionary+Store.h"
#import "SDLNames.h"
+#import "SDLAppServiceData.h"
+
NS_ASSUME_NONNULL_BEGIN
@implementation SDLOnAppServiceData
@@ -20,6 +22,17 @@ NS_ASSUME_NONNULL_BEGIN
return self;
}
+- (instancetype)initWithServiceData:(SDLAppServiceData *)serviceData {
+ self = [self init];
+ if (!self) {
+ return nil;
+ }
+
+ self.serviceData = serviceData;
+
+ return self;
+}
+
- (void)setServiceData:(SDLAppServiceData *)serviceData {
[parameters sdl_setObject:serviceData forName:SDLNameServiceData];
}