diff options
Diffstat (limited to 'Juick/Model/DeviceRegistration.h')
-rw-r--r-- | Juick/Model/DeviceRegistration.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Juick/Model/DeviceRegistration.h b/Juick/Model/DeviceRegistration.h index e629637..d5b620c 100644 --- a/Juick/Model/DeviceRegistration.h +++ b/Juick/Model/DeviceRegistration.h @@ -11,7 +11,15 @@ @interface DeviceRegistration : NSObject @property NSString *type; @property NSString *token; + +-(NSDictionary *) toJSON; @end @implementation DeviceRegistration +-(NSDictionary *) toJSON { + return @{ + @"type": self.type, + @"token": self.token + }; +} @end |