12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //
- // User.h
- // FirstLink
- //
- // Created by unicode on 14-9-30.
- // Copyright (c) 2014年 FirstLink. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "Motis.h"
- #define kIsNew @"IsNew"
- #define kHeadURL @"HeadURL"
- #define kMobile @"Mobile"
- #define kNickName @"NickName"
- #define kStatus @"Status"
- #define kLevel @"Level"
- #define kToken @"Token"
- #define kUserID @"UserID"
- #define kIntroduce @"introduce"
- #define kLoginType @"LoginType"
- typedef NS_ENUM(NSInteger, UserLoginType) {
- UserLoginTypeMobile,
- UserLoginTypeVerifyCode,
- UserLoginTypeExistMobile,
- UserLoginTypeExistVerifyCode,
- UserLoginTypeExistQQ,
- UserLoginTypeExistWeixin,
- UserLoginTypeExistWeibo,
- };
- @interface User : NSObject
- <NSCoding, NSMutableCopying>
- @property (nonatomic, strong) NSString *isNew;
- @property (nonatomic, strong) NSString *markCode;
- @property (nonatomic, strong) NSString *headurl;
- @property (nonatomic, strong) NSString *mobile;
- @property (nonatomic, strong) NSString *nickName;
- @property (nonatomic, strong) NSString *status;
- @property (nonatomic, strong) NSString *level;
- @property (nonatomic, strong) NSString *shareAuthority;
- @property (nonatomic, strong) NSString *token;
- @property (nonatomic, strong) NSString *umengToken;
- @property (nonatomic, strong) NSString *userID;
- @property (nonatomic, strong) NSString *introduce;
- @property (nonatomic, assign) UserLoginType lastLoginType;
- - (BOOL)isVIP;
- - (BOOL)isVipWithDiscount;
- @end
|