RTCEvent.cs 942 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using Blue;
  2. /// <summary>
  3. /// 创建房间成功事件
  4. /// </summary>
  5. public class RTCCreatRoomSuccessEvent : IEvent
  6. {
  7. public string rtcRoomInfo;
  8. }
  9. /// <summary>
  10. /// 连接RTC成功事件
  11. /// </summary>
  12. public class RTCConnectSuccessEvent : IEvent
  13. {
  14. }
  15. /// <summary>
  16. /// 连接RTC失败事件
  17. /// </summary>
  18. public class RTCConnectFailEvent : IEvent
  19. {
  20. }
  21. /// <summary>
  22. /// 加入房间成功事件
  23. /// </summary>
  24. public class JoinRoomSuccessEvent : IEvent
  25. {
  26. public string rtcRoomInfo;
  27. }
  28. /// <summary>
  29. /// 其他用户加入房间事件
  30. /// </summary>
  31. public class OtherUserJoinRoomEvent : IEvent
  32. {
  33. public string rtcUserInfoJsonString;
  34. }
  35. /// <summary>
  36. /// 其他用户退出房间事件
  37. /// </summary>
  38. public class OtherLeaveRoomEvent : IEvent
  39. {
  40. public string rtcUserInfoJsonString;
  41. }
  42. /// <summary>
  43. /// 用户拒绝进入、无响应事件
  44. /// </summary>
  45. public class NoEnterRoomEvent : IEvent
  46. {
  47. public int UserID;
  48. }