WhiteRoomMember.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // WhiteRoomMember.h
  3. // WhiteSDK
  4. //
  5. // Created by leavesster on 2018/8/14.
  6. //
  7. #import "WhiteObject.h"
  8. #import "WhiteMemberState.h"
  9. #import "WhiteMemberInformation.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. /** 实时房间内互动模式(具有读写权限)用户信息。 */
  12. @interface WhiteRoomMember : WhiteObject
  13. @property (nonatomic, copy, readonly) WhiteApplianceNameKey currentApplianceName DEPRECATED_MSG_ATTRIBUTE("使用 memberState.currentApplianceName 获取");
  14. /**
  15. 用户 ID。
  16. 在用户加入互动白板实时房间时,会自动分配用户 ID,用于标识房间内的用户。同一房间中的每个用户具有唯一的用户 ID。
  17. */
  18. @property (nonatomic, assign, readonly) NSInteger memberId;
  19. /** 用户当前使用的工具。详见 [WhiteReadonlyMemberState。](WhiteReadonlyMemberState) */
  20. @property (nonatomic, strong, readonly) WhiteReadonlyMemberState *memberState;
  21. /**
  22. @deprecated 已废弃。请使用 `payload`。
  23. 用户加入房间时携带的用户信息。
  24. */
  25. @property (nonatomic, strong, readonly, nullable) WhiteMemberInformation *information;
  26. /**
  27. 用户加入房间时携带的自定义用户信息。
  28. 允许转换为 JSON,字符串或数字。
  29. @since iOS 2.1.0
  30. **Note:** 如果想要使用 SDK 默认头像显示,请使用 `avatar` 字段设置用户头像。
  31. */
  32. @property (nonatomic, strong, readonly, nullable) id payload;
  33. @end
  34. NS_ASSUME_NONNULL_END