From 5d0e97b3c1a1910a036f455b67205bc5eece1c29 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 3 Mar 2018 21:33:11 +0300 Subject: discussions --- Juick/APIClient.m | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Juick/APIClient.m') diff --git a/Juick/APIClient.m b/Juick/APIClient.m index ecaf536..3190659 100644 --- a/Juick/APIClient.m +++ b/Juick/APIClient.m @@ -29,6 +29,9 @@ self.manager = [[AFHTTPSessionManager alloc] initWithBaseURL:[NSURL URLWithString:@"https://api.juick.com"]]; self.manager.requestSerializer = [AFJSONRequestSerializer new]; self.backgroundQueue = [NSOperationQueue new]; + self.dateFormatter = [[NSDateFormatter alloc] init]; + self.dateFormatter.dateFormat = @"yyyy-MM-dd HH:mm:ss"; + [self.dateFormatter setTimeZone:[NSTimeZone timeZoneWithName:@"UTC"]]; } return self; } @@ -104,6 +107,10 @@ return @"/messages"; } ++(NSString *) discussionsUrl { + return @"/messages/discussions"; +} + +(NSString *) threadUrl { return @"/thread"; } -- cgit v1.2.3