summaryrefslogtreecommitdiff
path: root/Juick/User.h
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2014-02-02 00:53:45 +0400
committerGravatar Vitaly Takmazov2014-02-02 00:53:45 +0400
commitd52c86da9751f221a24c21ec903656e279ba885a (patch)
tree1b5b8d45efe472c5e997a4ae1f2293d55291f31d /Juick/User.h
parent552680443dea2ea5e3ce64d03dc4b6d2e39a7226 (diff)
Login info in reveal panel and login flow improvements (not complete)
Diffstat (limited to 'Juick/User.h')
-rw-r--r--Juick/User.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Juick/User.h b/Juick/User.h
new file mode 100644
index 0000000..e4c46f3
--- /dev/null
+++ b/Juick/User.h
@@ -0,0 +1,24 @@
+//
+// User.h
+// Juick
+//
+// Created by Vitaly on 01.02.14.
+// Copyright (c) 2014 com.juick. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <RestKit/RestKit.h>
+
+@interface User : NSObject
+@property (nonatomic, strong) NSString *uname;
+@property (nonatomic, strong) NSString *uid;
+
++ (void) get:(NSString *)name callback:(void(^)(User *))callback;
+
++ (BOOL) isAuthenticated;
+
++ (void) checkIsValid:(void(^)(BOOL))callback;
+
++ (void) throwUnableToLogin;
+
+@end