summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2017-08-03 15:53:22 -0400
committerNicoleYarroch <nicole@livio.io>2017-08-03 15:53:22 -0400
commitc988e502a7bf21524976315eff95629660f7d97f (patch)
treed0212754711aaa35ef7c8e4c6516dd774dc516ce
parentb0744242a4d9ff1344a6a1dd04ce0c451be8da38 (diff)
downloadsdl_ios-c988e502a7bf21524976315eff95629660f7d97f.tar.gz
Added SDLSpatialStruct class
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r--SmartDeviceLink-iOS.xcodeproj/project.pbxproj8
-rw-r--r--SmartDeviceLink/SDLSpatialStruct.h51
-rw-r--r--SmartDeviceLink/SDLSpatialStruct.m86
3 files changed, 145 insertions, 0 deletions
diff --git a/SmartDeviceLink-iOS.xcodeproj/project.pbxproj b/SmartDeviceLink-iOS.xcodeproj/project.pbxproj
index 0230bd1a2..f0d5e1780 100644
--- a/SmartDeviceLink-iOS.xcodeproj/project.pbxproj
+++ b/SmartDeviceLink-iOS.xcodeproj/project.pbxproj
@@ -900,6 +900,8 @@
5DE5ABB71B0E38C90067BB02 /* SDLSystemRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD21A84238B00846EE7 /* SDLSystemRequest.h */; };
5DE5ABB81B0E38C90067BB02 /* SDLSystemRequestResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D61FBD41A84238B00846EE7 /* SDLSystemRequestResponse.h */; };
5DFFB9151BD7C89700DB3F04 /* SDLConnectionManagerType.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DFFB9141BD7C89700DB3F04 /* SDLConnectionManagerType.h */; };
+ 88EED8381F33AE1700E6C42E /* SDLSpatialStruct.h in Headers */ = {isa = PBXBuildFile; fileRef = 88EED8361F33AE1700E6C42E /* SDLSpatialStruct.h */; };
+ 88EED8391F33AE1700E6C42E /* SDLSpatialStruct.m in Sources */ = {isa = PBXBuildFile; fileRef = 88EED8371F33AE1700E6C42E /* SDLSpatialStruct.m */; };
8B7B319A1F2F7B5700BDC38D /* SDLVideoStreamingCodec.h in Headers */ = {isa = PBXBuildFile; fileRef = 8B7B31981F2F7B5700BDC38D /* SDLVideoStreamingCodec.h */; };
8B7B319B1F2F7B5700BDC38D /* SDLVideoStreamingCodec.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B7B31991F2F7B5700BDC38D /* SDLVideoStreamingCodec.m */; };
8B7B319E1F2F7CF700BDC38D /* SDLVideoStreamingProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 8B7B319C1F2F7CF700BDC38D /* SDLVideoStreamingProtocol.h */; };
@@ -1969,6 +1971,8 @@
5DEE55BF1B8509CB004F0D0F /* SDLURLRequestTaskSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLURLRequestTaskSpec.m; path = "UtilitiesSpecs/HTTP Connection/SDLURLRequestTaskSpec.m"; sourceTree = "<group>"; };
5DF2BB9C1B94E38A00CE5994 /* SDLURLSessionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDLURLSessionSpec.m; path = "UtilitiesSpecs/HTTP Connection/SDLURLSessionSpec.m"; sourceTree = "<group>"; };
5DFFB9141BD7C89700DB3F04 /* SDLConnectionManagerType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLConnectionManagerType.h; sourceTree = "<group>"; };
+ 88EED8361F33AE1700E6C42E /* SDLSpatialStruct.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLSpatialStruct.h; sourceTree = "<group>"; };
+ 88EED8371F33AE1700E6C42E /* SDLSpatialStruct.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLSpatialStruct.m; sourceTree = "<group>"; };
8B7B31981F2F7B5700BDC38D /* SDLVideoStreamingCodec.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVideoStreamingCodec.h; sourceTree = "<group>"; };
8B7B31991F2F7B5700BDC38D /* SDLVideoStreamingCodec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDLVideoStreamingCodec.m; sourceTree = "<group>"; };
8B7B319C1F2F7CF700BDC38D /* SDLVideoStreamingProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLVideoStreamingProtocol.h; sourceTree = "<group>"; };
@@ -2991,6 +2995,8 @@
5D61FBB31A84238B00846EE7 /* SDLSoftButton.m */,
5D61FBB41A84238B00846EE7 /* SDLSoftButtonCapabilities.h */,
5D61FBB51A84238B00846EE7 /* SDLSoftButtonCapabilities.m */,
+ 88EED8361F33AE1700E6C42E /* SDLSpatialStruct.h */,
+ 88EED8371F33AE1700E6C42E /* SDLSpatialStruct.m */,
5D61FBBE1A84238B00846EE7 /* SDLStartTime.h */,
5D61FBBF1A84238B00846EE7 /* SDLStartTime.m */,
5D61FBC81A84238B00846EE7 /* SDLSyncMsgVersion.h */,
@@ -4019,6 +4025,7 @@
5D61FC761A84238C00846EE7 /* SDLDeleteFile.h in Headers */,
5D61FD211A84238C00846EE7 /* SDLOnVehicleData.h in Headers */,
DA9F7E731DCC004C00ACAE48 /* SDLGetWaypointsResponse.h in Headers */,
+ 88EED8381F33AE1700E6C42E /* SDLSpatialStruct.h in Headers */,
5DD67CC31E68AE82009CD394 /* SDLLogFileModuleMap.h in Headers */,
5D61FD7D1A84238C00846EE7 /* SDLScrollableMessageResponse.h in Headers */,
5D61FD431A84238C00846EE7 /* SDLProtocol.h in Headers */,
@@ -4716,6 +4723,7 @@
5DA3F3551BC448060026F2D0 /* NSMapTable+Subscripting.m in Sources */,
5D61FCD61A84238C00846EE7 /* SDLImageType.m in Sources */,
5D4D67AD1D2ED37A00468B4A /* SDLNotificationDispatcher.m in Sources */,
+ 88EED8391F33AE1700E6C42E /* SDLSpatialStruct.m in Sources */,
DA9F7E9C1DCC052C00ACAE48 /* SDLLocationDetails.m in Sources */,
5D61FD7A1A84238C00846EE7 /* SDLScreenParams.m in Sources */,
5D61FC831A84238C00846EE7 /* SDLDeviceInfo.m in Sources */,
diff --git a/SmartDeviceLink/SDLSpatialStruct.h b/SmartDeviceLink/SDLSpatialStruct.h
new file mode 100644
index 000000000..e8a41d677
--- /dev/null
+++ b/SmartDeviceLink/SDLSpatialStruct.h
@@ -0,0 +1,51 @@
+//
+// SDLSpatialStruct.h
+// SmartDeviceLink-iOS
+//
+// Created by Nicole on 8/3/17.
+// Copyright © 2017 smartdevicelink. All rights reserved.
+//
+
+#import "SDLRPCStruct.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+/**
+ * Defines spatial for each user control object for video streaming application
+ */
+@interface SDLSpatialStruct : SDLRPCStruct
+
+- (instancetype)initWithId:(UInt32)id x:(NSN)
+/**
+ * A user control spatial identifier
+ * Required, Integer, 0 - 2,000,000,000
+ */
+@property (strong, nonatomic) NSNumber<SDLUInt> *id;
+
+/**
+ * The X-coordinate of the user control
+ * Required, Float
+ */
+@property (strong, nonatomic) NSNumber<SDLFloat> *x;
+
+/**
+ * The Y-coordinate of the user control
+ * Required, Float
+ */
+@property (strong, nonatomic) NSNumber<SDLFloat> *y;
+
+/**
+ * The width of the user control's bounding rectangle
+ * Required, Float
+ */
+@property (strong, nonatomic) NSNumber<SDLFloat> *width;
+
+/**
+ * The height of the user control's bounding rectangle
+ * Required, Float
+ */
+@property (strong, nonatomic) NSNumber<SDLFloat> *height;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff --git a/SmartDeviceLink/SDLSpatialStruct.m b/SmartDeviceLink/SDLSpatialStruct.m
new file mode 100644
index 000000000..6b6cf8bcb
--- /dev/null
+++ b/SmartDeviceLink/SDLSpatialStruct.m
@@ -0,0 +1,86 @@
+//
+// SDLSpatialStruct.m
+// SmartDeviceLink-iOS
+//
+// Created by Nicole on 8/3/17.
+// Copyright © 2017 smartdevicelink. All rights reserved.
+//
+
+#import "SDLSpatialStruct.h"
+#import "SDLNames.h"
+
+@implementation SDLSpatialStruct
+
+- (instancetype)init {
+ if (self = [super init]) {
+ }
+ return self;
+}
+
+- (instancetype)initWithDictionary:(NSMutableDictionary *)dict {
+ if (self = [super initWithDictionary:dict]) {
+ }
+ return self;
+}
+
+//- (void)setId:(NSNumber *)id {
+// if (id != nil) {
+// [store setObject:id forKey:NAMES_id];
+// } else {
+// [store removeObjectForKey:NAMES_id];
+// }
+//}
+//
+//- (NSNumber *)id {
+// return [store objectForKey:NAMES_id];
+//}
+//
+//- (void)setX:(NSNumber *)x {
+// if (x != nil) {
+// [store setObject:x forKey:NAMES_x];
+// } else {
+// [store removeObjectForKey:NAMES_x];
+// }
+//}
+//
+//- (NSNumber *)x {
+// return [store objectForKey:NAMES_x];
+//}
+//
+//- (void)setY:(NSNumber *)y {
+// if (y != nil) {
+// [store setObject:y forKey:NAMES_y];
+// } else {
+// [store removeObjectForKey:NAMES_y];
+// }
+//}
+//
+//- (NSNumber *)y {
+// return [store objectForKey:NAMES_y];
+//}
+//
+//- (void)setWidth:(NSNumber *)width {
+// if (width != nil) {
+// [store setObject:width forKey:NAMES_width];
+// } else {
+// [store removeObjectForKey:NAMES_width];
+// }
+//}
+//
+//- (NSNumber *)width {
+// return [store objectForKey:NAMES_width];
+//}
+//
+//- (void)setHeight:(NSNumber *)height {
+// if (height != nil) {
+// [store setObject:height forKey:NAMES_height];
+// } else {
+// [store removeObjectForKey:NAMES_height];
+// }
+//}
+//
+//- (NSNumber *)height {
+// return [store objectForKey:NAMES_height];
+//}
+
+@end