From a293a8e049fea49b8c2b8262fb92a29f73d66989 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 2 Dec 2018 23:23:31 +0300 Subject: Drop YYModel --- Juick/Model/DeviceRegistration.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Juick/Model/DeviceRegistration.h') 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 -- cgit v1.2.3