WFCCUserInfo.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. //
  2. // WFCCUserInfo.h
  3. // WFChatClient
  4. //
  5. // Created by heavyrain on 2017/9/29.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "WFCCJsonSerializer.h"
  10. /**
  11. 用户信息
  12. */
  13. @interface WFCCUserInfo : WFCCJsonSerializer
  14. /**
  15. 用户ID
  16. */
  17. @property (nonatomic, strong)NSString *userId;
  18. /**
  19. 名称
  20. */
  21. @property (nonatomic, strong)NSString *name;
  22. /**
  23. 显示的名称
  24. */
  25. @property (nonatomic, strong)NSString *displayName;
  26. /**
  27. 性别
  28. */
  29. @property (nonatomic, assign)int gender;
  30. /**
  31. 头像
  32. */
  33. @property (nonatomic, strong)NSString *portrait;
  34. /**
  35. 手机号
  36. */
  37. @property (nonatomic, strong)NSString *mobile;
  38. /**
  39. 邮箱
  40. */
  41. @property (nonatomic, strong)NSString *email;
  42. /**
  43. 地址
  44. */
  45. @property (nonatomic, strong)NSString *address;
  46. /**
  47. 公司信息
  48. */
  49. @property (nonatomic, strong)NSString *company;
  50. /**
  51. 社交信息
  52. */
  53. @property (nonatomic, strong)NSString *social;
  54. /**
  55. 扩展信息
  56. */
  57. @property (nonatomic, strong)NSString *extra;
  58. /**
  59. 好友备注
  60. */
  61. @property (nonatomic, strong)NSString *friendAlias;
  62. /**
  63. 群昵称
  64. */
  65. @property (nonatomic, strong)NSString *groupAlias;
  66. /**
  67. 更新时间
  68. */
  69. @property (nonatomic, assign)long long updateDt;
  70. /**
  71. 用户类型
  72. */
  73. @property (nonatomic, assign) int type;
  74. /**
  75. 是否被删除用户
  76. */
  77. @property (nonatomic, assign) int deleted;
  78. /**
  79. 辅助方法,返回可读的名称,如果有备注返回备注,如果有群昵称,显示群昵称,如果都没有返回用户昵称。
  80. */
  81. @property(nonatomic, readonly)NSString *readableName;
  82. - (void)cloneFrom:(WFCCUserInfo *)other;
  83. @end