summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLOnKeyboardInput.m
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2016-11-06 16:03:10 -0800
committerMuller, Alexander (A.) <amulle19@ford.com>2016-11-06 16:03:10 -0800
commitcc7ff76d64ddf59cb9ecd672cb31ade444bed307 (patch)
tree32ca3dfdc6fb6a493c34296f49fa03af9d763e2f /SmartDeviceLink/SDLOnKeyboardInput.m
parentc5c4bf31ffe06e38fc7f19b8f3df4a1cc6137ca0 (diff)
downloadsdl_ios-cc7ff76d64ddf59cb9ecd672cb31ade444bed307.tar.gz
Updated setter/getter for all rpcs and structs to use convenience methods.
Diffstat (limited to 'SmartDeviceLink/SDLOnKeyboardInput.m')
-rw-r--r--SmartDeviceLink/SDLOnKeyboardInput.m12
1 files changed, 2 insertions, 10 deletions
diff --git a/SmartDeviceLink/SDLOnKeyboardInput.m b/SmartDeviceLink/SDLOnKeyboardInput.m
index 16848f5b7..b0d9409ae 100644
--- a/SmartDeviceLink/SDLOnKeyboardInput.m
+++ b/SmartDeviceLink/SDLOnKeyboardInput.m
@@ -14,11 +14,7 @@
}
- (void)setEvent:(SDLKeyboardEvent)event {
- if (event != nil) {
- [parameters setObject:event forKey:SDLNameEvent];
- } else {
- [parameters removeObjectForKey:SDLNameEvent];
- }
+ [self setObject:event forName:SDLNameEvent];
}
- (SDLKeyboardEvent)event {
@@ -27,11 +23,7 @@
}
- (void)setData:(NSString *)data {
- if (data != nil) {
- [parameters setObject:data forKey:SDLNameData];
- } else {
- [parameters removeObjectForKey:SDLNameData];
- }
+ [self setObject:data forName:SDLNameData];
}
- (NSString *)data {