Geen omschrijving

User.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // User.h
  3. // FirstLink
  4. //
  5. // Created by unicode on 14-9-30.
  6. // Copyright (c) 2014年 FirstLink. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "Motis.h"
  10. #define kIsNew @"IsNew"
  11. #define kHeadURL @"HeadURL"
  12. #define kMobile @"Mobile"
  13. #define kNickName @"NickName"
  14. #define kStatus @"Status"
  15. #define kLevel @"Level"
  16. #define kToken @"Token"
  17. #define kUserID @"UserID"
  18. #define kIntroduce @"introduce"
  19. #define kLoginType @"LoginType"
  20. typedef NS_ENUM(NSInteger, UserLoginType) {
  21. UserLoginTypeMobile,
  22. UserLoginTypeVerifyCode,
  23. UserLoginTypeExistMobile,
  24. UserLoginTypeExistVerifyCode,
  25. UserLoginTypeExistQQ,
  26. UserLoginTypeExistWeixin,
  27. UserLoginTypeExistWeibo,
  28. };
  29. @interface User : NSObject
  30. <NSCoding, NSMutableCopying>
  31. @property (nonatomic, strong) NSString *isNew;
  32. @property (nonatomic, strong) NSString *markCode;
  33. @property (nonatomic, strong) NSString *headurl;
  34. @property (nonatomic, strong) NSString *mobile;
  35. @property (nonatomic, strong) NSString *nickName;
  36. @property (nonatomic, strong) NSString *status;
  37. @property (nonatomic, strong) NSString *level;
  38. @property (nonatomic, strong) NSString *shareAuthority;
  39. @property (nonatomic, strong) NSString *token;
  40. @property (nonatomic, strong) NSString *umengToken;
  41. @property (nonatomic, strong) NSString *userID;
  42. @property (nonatomic, strong) NSString *introduce;
  43. @property (nonatomic, assign) UserLoginType lastLoginType;
  44. - (BOOL)isVIP;
  45. - (BOOL)isVipWithDiscount;
  46. @end