summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLAppServiceData.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLAppServiceData.m')
-rw-r--r--SmartDeviceLink/SDLAppServiceData.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLAppServiceData.m b/SmartDeviceLink/SDLAppServiceData.m
index a4ad15460..a247dc988 100644
--- a/SmartDeviceLink/SDLAppServiceData.m
+++ b/SmartDeviceLink/SDLAppServiceData.m
@@ -17,6 +17,20 @@ NS_ASSUME_NONNULL_BEGIN
@implementation SDLAppServiceData
+- (instancetype)initWithServiceType:(NSString *)serviceType serviceId:(NSString *)serviceId mediaServiceData:(nullable SDLMediaServiceData *)mediaServiceData weatherServiceData:(nullable SDLWeatherServiceData *)weatherServiceData {
+ self = [self init];
+ if (!self) {
+ return nil;
+ }
+
+ self.serviceType = serviceType;
+ self.serviceId = serviceId;
+ self.mediaServiceData = mediaServiceData;
+ self.weatherServiceData = weatherServiceData;
+
+ return self;
+}
+
- (void)setServiceType:(NSString *)serviceType {
[store sdl_setObject:serviceType forName:SDLNameServiceType];
}