summaryrefslogtreecommitdiff
path: root/Juick/APIClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/APIClient.h')
-rw-r--r--Juick/APIClient.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Juick/APIClient.h b/Juick/APIClient.h
index 5cf6437..078b91f 100644
--- a/Juick/APIClient.h
+++ b/Juick/APIClient.h
@@ -7,10 +7,10 @@
//
#import <Foundation/Foundation.h>
#import "Message.h"
+#import "DeviceRegistration.h"
@interface APIClient : NSObject
-@property (nonatomic, retain) AFHTTPSessionManager *manager;
@property (nonatomic, strong) NSDateFormatter *dateFormatter;
+(APIClient *) sharedClient;
@@ -21,6 +21,9 @@
-(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(^)(BOOL))callback;
+-(void) refreshDeviceRegistration:(DeviceRegistration *)registrationData callback:(void(^)(BOOL))callback;
+-(void) getUserByName:(NSString *) name callback:(void(^)(User *))callback;
+(NSString *) messagesUrl;
+(NSString *) threadUrl;