SSDKUser.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. //
  2. // SSDKUser.h
  3. // ShareSDK
  4. //
  5. // Created by 冯 鸿杰 on 15/2/6.
  6. // Copyright (c) 2015年 掌淘科技. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "SSDKTypeDefine.h"
  10. @class SSDKCredential;
  11. /**
  12. * 性别
  13. */
  14. typedef NS_ENUM(NSUInteger, SSDKGender){
  15. /**
  16. * 男
  17. */
  18. SSDKGenderMale = 0,
  19. /**
  20. * 女
  21. */
  22. SSDKGenderFemale = 1,
  23. /**
  24. * 未知
  25. */
  26. SSDKGenderUnknown = 2,
  27. };
  28. /**
  29. * 用户信息
  30. */
  31. @interface SSDKUser : NSObject
  32. /**
  33. * 平台类型
  34. */
  35. @property (nonatomic) SSDKPlatformType platformType;
  36. /**
  37. * 授权凭证, 为nil则表示尚未授权
  38. */
  39. @property (nonatomic, retain) SSDKCredential *credential;
  40. /**
  41. * 用户标识
  42. */
  43. @property (nonatomic, copy) NSString *uid;
  44. /**
  45. * 昵称
  46. */
  47. @property (nonatomic, copy) NSString *nickname;
  48. /**
  49. * 头像
  50. */
  51. @property (nonatomic, copy) NSString *icon;
  52. /**
  53. * 性别
  54. */
  55. @property (nonatomic) SSDKGender gender;
  56. /**
  57. * 用户主页
  58. */
  59. @property (nonatomic, copy) NSString *url;
  60. /**
  61. * 用户简介
  62. */
  63. @property (nonatomic, copy) NSString *aboutMe;
  64. /**
  65. * 认证用户类型
  66. */
  67. @property (nonatomic) NSInteger verifyType;
  68. /**
  69. * 认证描述
  70. */
  71. @property (nonatomic, copy) NSString *verifyReason;
  72. /**
  73. * 生日
  74. */
  75. @property (nonatomic, strong) NSDate *birthday;
  76. /**
  77. * 粉丝数
  78. */
  79. @property (nonatomic) NSInteger followerCount;
  80. /**
  81. * 好友数
  82. */
  83. @property (nonatomic) NSInteger friendCount;
  84. /**
  85. * 分享数
  86. */
  87. @property (nonatomic) NSInteger shareCount;
  88. /**
  89. * 注册时间
  90. */
  91. @property (nonatomic) NSTimeInterval regAt;
  92. /**
  93. * 用户等级
  94. */
  95. @property (nonatomic) NSInteger level;
  96. /**
  97. * 教育信息
  98. */
  99. @property (nonatomic, retain) NSArray *educations;
  100. /**
  101. * 职业信息
  102. */
  103. @property (nonatomic, retain) NSArray *works;
  104. /**
  105. * 原始数据
  106. */
  107. @property (nonatomic, retain) NSDictionary *rawData;
  108. @end