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

@import Foundation;

@interface User : NSObject
@property (nonatomic, strong) NSString *uname;
@property (nonatomic, strong) NSString *uid;
@property (nonatomic, strong) NSString *avatar;
@property (nonatomic, strong) NSString *token;
@property (nonatomic) NSInteger unreadCount;

+ (User *) fromJSON:(NSDictionary *)jsonData;

+ (void) throwUnableToLogin:(UIViewController *)view error:(NSError *)error path:(NSString *)path params:(NSDictionary *)params;

@end