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/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Juick/AppDelegate.m') diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index 950f473..629c6ca 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -65,7 +65,7 @@ registration.type = @"apns"; registration.token = token; AFHTTPSessionManager *manager = [APIClient sharedClient].manager; - [manager PUT:@"/notifications" parameters:[@[registration] yy_modelToJSONObject] success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { + [manager PUT:@"/notifications" parameters:@[[registration toJSON]] success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { NSLog(@"success %@", token); } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { NSLog(@"fail %@", [error localizedDescription]); -- cgit v1.2.3