summaryrefslogtreecommitdiff
path: root/Juick/Model/User.h
blob: 84300f383e224322dfabe73d1934456aa2f8905e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
//  User.h
//  Juick
//
//  Created by Vitaly on 01.02.14.
//  Copyright (c) 2014 com.juick. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PDKeychainBindings.h"
#import "SIAlertView.h"
#import "APIClient.h"
#import "YYModel.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