summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLSeatLocationCapability.m
diff options
context:
space:
mode:
authorSatbir Tanda <satbirtanda@gmail.com>2019-07-11 05:15:26 -0700
committerSatbir Tanda <satbirtanda@gmail.com>2019-07-29 04:47:40 -0700
commita2b7b1c66011ebf92d0460cc48901c90509519a4 (patch)
tree30664ccf48c80ae829133cd82137fd6b58bd0c5e /SmartDeviceLink/SDLSeatLocationCapability.m
parent0a09991073fe7d87155ab15d94f9142015d5af69 (diff)
downloadsdl_ios-a2b7b1c66011ebf92d0460cc48901c90509519a4.tar.gz
Create SeatLocation, SeatLocationCapability
Parse moduleId params
Diffstat (limited to 'SmartDeviceLink/SDLSeatLocationCapability.m')
-rw-r--r--SmartDeviceLink/SDLSeatLocationCapability.m52
1 files changed, 52 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLSeatLocationCapability.m b/SmartDeviceLink/SDLSeatLocationCapability.m
new file mode 100644
index 000000000..5a702d451
--- /dev/null
+++ b/SmartDeviceLink/SDLSeatLocationCapability.m
@@ -0,0 +1,52 @@
+//
+// SDLSeatLocationCapability.m
+// SmartDeviceLink
+//
+// Created by standa1 on 7/11/19.
+// Copyright © 2019 smartdevicelink. All rights reserved.
+//
+
+#import "SDLSeatLocationCapability.h"
+
+#import "NSMutableDictionary+Store.h"
+#import "SDLRPCParameterNames.h"
+
+@implementation SDLSeatLocationCapability
+
+- (void)setCol:(NSNumber<SDLInt> *)cols {
+ [self.store sdl_setObject:cols forName:SDLRPCParameterNameColumns];
+}
+
+- (NSNumber<SDLInt> *)cols {
+ NSError *error = nil;
+ return [self.store sdl_objectForName:SDLRPCParameterNameColumns ofClass:NSNumber.class error:&error];
+}
+
+- (void)setRow:(NSNumber<SDLInt> *)rows {
+ [self.store sdl_setObject:rows forName:SDLRPCParameterNameRows];
+}
+
+- (NSNumber<SDLInt> *)rows {
+ NSError *error = nil;
+ return [self.store sdl_objectForName:SDLRPCParameterNameRows ofClass:NSNumber.class error:&error];
+}
+
+- (void)setLevel:(NSNumber<SDLInt> *)levels {
+ [self.store sdl_setObject:levels forName:SDLRPCParameterNameLevels];
+}
+
+- (NSNumber<SDLInt> *)levels {
+ NSError *error = nil;
+ return [self.store sdl_objectForName:SDLRPCParameterNameLevels ofClass:NSNumber.class error:&error];
+}
+
+- (void)setSeats:(SDLSeatLocation *)seats {
+ [self.store sdl_setObject:seats forName:SDLRPCParameterNameSeats];
+}
+
+- (SDLSeatLocation *)seats {
+ NSError *error = nil;
+ return [self.store sdl_objectForName:SDLRPCParameterNameSeats ofClass:SDLSeatLocation.class error:&error];
+}
+
+@end