summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLRPCMessage.h
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2018-05-24 10:09:01 -0400
committerNicoleYarroch <nicole@livio.io>2018-05-24 10:09:01 -0400
commit8bfbd48fa554a16f60293349b5568bf90edeb8ba (patch)
tree0b5949506a04cbc54b7da566d69bf0186b547cfc /SmartDeviceLink/SDLRPCMessage.h
parent7b2d3efbf423be755cdfaeabb4c08b3c9a9875b4 (diff)
downloadsdl_ios-8bfbd48fa554a16f60293349b5568bf90edeb8ba.tar.gz
Added documentation to SDLRPCMessage class
Signed-off-by: NicoleYarroch <nicole@livio.io>
Diffstat (limited to 'SmartDeviceLink/SDLRPCMessage.h')
-rw-r--r--SmartDeviceLink/SDLRPCMessage.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLRPCMessage.h b/SmartDeviceLink/SDLRPCMessage.h
index 3612d15c0..d2c7e02ce 100644
--- a/SmartDeviceLink/SDLRPCMessage.h
+++ b/SmartDeviceLink/SDLRPCMessage.h
@@ -13,15 +13,65 @@ NS_ASSUME_NONNULL_BEGIN
NSString *messageType;
}
+/**
+ * Convenience init
+ *
+ * @param name The name of the message
+ * @return A SDLRPCMessage object
+ */
- (instancetype)initWithName:(NSString *)name;
+
+/**
+ * Convenience init
+ *
+ * @param dict A dictionary with the format @{messageType: @{parameters}}
+ * @return A SDLRPCMessage object
+ */
- (instancetype)initWithDictionary:(NSDictionary<NSString *, id> *)dict;
+
+/**
+ * Returns the function name.
+ *
+ * @return The function name
+ */
- (nullable NSString *)getFunctionName;
+
+/**
+ * Sets the function name.
+ *
+ * @param functionName The function name
+ */
- (void)setFunctionName:(nullable NSString *)functionName;
+
+/**
+ * Returns the value associated with the provided key. If the key does not exist, null is returned.
+ *
+ * @param functionName The key name
+ * @return The value associated with the function name
+ */
- (nullable NSObject *)getParameters:(NSString *)functionName;
+
+/**
+ * Sets a key-value pair using the function name as the key.
+ *
+ * @param functionName The name for the key
+ * @param value The value associated with the function name
+ */
- (void)setParameters:(NSString *)functionName value:(nullable NSObject *)value;
+/**
+ * The data in the message
+ */
@property (nullable, strong, nonatomic) NSData *bulkData;
+
+/**
+ * The name of the message
+ */
@property (strong, nonatomic, readonly) NSString *name;
+
+/**
+ * The type of data in the message
+ */
@property (strong, nonatomic, readonly) NSString *messageType;
@end