UMSocialResponse.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // UMSocialResponse.h
  3. // UMSocialSDK
  4. //
  5. // Created by wangfei on 16/8/12.
  6. // Copyright © 2016年 dongjianxiong. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "UMSocialPlatformConfig.h"
  10. @interface UMSocialResponse : NSObject
  11. @property (nonatomic, copy) NSString *uid;
  12. @property (nonatomic, copy) NSString *openid;
  13. @property (nonatomic, copy) NSString *refreshToken;
  14. @property (nonatomic, copy) NSDate *expiration;
  15. @property (nonatomic, copy) NSString *accessToken;
  16. @property (nonatomic, copy) NSString *unionId;
  17. /**
  18. usid 兼容U-Share 4.x/5.x 版本,与4/5版本数值相同
  19. 即,对应微信平台:openId,QQ平台openId,其他平台不变
  20. */
  21. @property (nonatomic, copy) NSString *usid;
  22. @property (nonatomic, assign) UMSocialPlatformType platformType;
  23. /**
  24. * 第三方原始数据
  25. */
  26. @property (nonatomic, strong) id originalResponse;
  27. /**
  28. 6.5版版本新加入的扩展字段
  29. */
  30. @property (nonatomic, strong)NSDictionary* extDic;//每个平台特有的字段有可能会加在此处,有可能为nil
  31. @end
  32. @interface UMSocialShareResponse : UMSocialResponse
  33. @property (nonatomic, copy) NSString *message;
  34. + (UMSocialShareResponse *)shareResponseWithMessage:(NSString *)message;
  35. @end
  36. @interface UMSocialAuthResponse : UMSocialResponse
  37. @end
  38. @interface UMSocialUserInfoResponse : UMSocialResponse
  39. /**
  40. 第三方平台昵称
  41. */
  42. @property (nonatomic, copy) NSString *name;
  43. /**
  44. 第三方平台头像地址
  45. */
  46. @property (nonatomic, copy) NSString *iconurl;
  47. /**
  48. 通用平台性别属性
  49. QQ、微信、微博返回 "男", "女"
  50. Facebook返回 "male", "female"
  51. */
  52. @property (nonatomic, copy) NSString *unionGender;
  53. @property (nonatomic, copy) NSString *gender;
  54. @end