summaryrefslogtreecommitdiff
path: root/Juick/APIClient.h
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-10-31 16:16:48 +0300
committerGravatar Vitaly Takmazov2020-05-12 16:38:25 +0300
commit9d78e7d654c51c22ce4be87efef5bc1f8d5a2d08 (patch)
treedfb028dfca07fdb7bbacc00771f9e865f28fd6d4 /Juick/APIClient.h
parent742e1a0e615a7e07a9f4b4c249227cd63839325f (diff)
Fix authentication
Diffstat (limited to 'Juick/APIClient.h')
-rw-r--r--Juick/APIClient.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/Juick/APIClient.h b/Juick/APIClient.h
deleted file mode 100644
index d8317a4..0000000
--- a/Juick/APIClient.h
+++ /dev/null
@@ -1,36 +0,0 @@
-//
-// APIClient.h
-// Juick
-//
-// Created by Vitaly Takmazov on 22/08/16.
-// Copyright © 2016 com.juick. All rights reserved.
-//
-#import <Foundation/Foundation.h>
-#import "Message.h"
-#import "DeviceRegistration.h"
-
-@interface APIClient : NSObject<NSURLSessionDelegate, NSURLSessionTaskDelegate>
-
-@property (nonatomic, strong) NSDateFormatter *dateFormatter;
-@property (nonatomic, strong) NSURLCredential *credential;
-
-+(APIClient *) sharedClient;
-
--(void) pullNextFromPath:(NSString *)path params:(NSDictionary *)params callback:(void(^)(NSArray<Message *>*, NSError *))callback;
--(void) postMessage:(NSString *)text result:(void(^)(Message *, NSError *))callback;
--(void) postReplyToThread:(NSNumber *)mid inReplyTo:(NSNumber *)rid text:(NSString *)text result:(void(^)(Message *, NSError *))callback;
--(void) postPMToUser:(NSString *)uname text:(NSString *)text result:(void(^)(NSError *))callback;
--(void) fetchChats:(void(^)(NSArray *, NSError *))callback;
--(void) fetchChatWithUser:(NSString *)uname callback:(void(^)(NSArray *, NSError *))callback;
--(void) authenticate:(void(^)(User *, NSError *))callback;
--(void) refreshDeviceRegistration:(DeviceRegistration *)registrationData callback:(void(^)(BOOL))callback;
--(void) getUserByName:(NSString *) name callback:(void(^)(User *))callback;
--(BOOL) isAuthenticated;
--(void) fetchImageWithURL:(NSURL *) url callback:(void(^)(NSData *))callback;
-
-+(NSString *) messagesUrl;
-+(NSString *) threadUrl;
-+(NSString *) feedUrl;
-+(NSString *) discussionsUrl;
-
-@end