mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-02 22:42:45 +08:00
31 lines
763 B
Objective-C
31 lines
763 B
Objective-C
//
|
|
// DBUser.h
|
|
// DiscussionBoard
|
|
//
|
|
// Created by Jeremy Ellison on 1/10/11.
|
|
// Copyright 2011 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import <RestKit/RestKit.h>
|
|
#import <RestKit/CoreData/CoreData.h>
|
|
|
|
@interface DBUser : RKManagedObject {
|
|
// Transient. Used for login & signup
|
|
NSString* _password;
|
|
NSString* _passwordConfirmation;
|
|
}
|
|
|
|
@property (nonatomic, retain) NSString* email;
|
|
@property (nonatomic, retain) NSString* login;
|
|
// Access Token will only be populated on a logged in user.
|
|
@property (nonatomic, retain) NSString* singleAccessToken;
|
|
@property (nonatomic, retain) NSNumber* userID;
|
|
|
|
@property (nonatomic, retain) NSString* password;
|
|
@property (nonatomic, retain) NSString* passwordConfirmation;
|
|
|
|
+ (DBUser*)currentUser;
|
|
+ (void)logout;
|
|
|
|
@end
|