SelfRoomListResponseMessage.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. /********************************************************************************
  5. ** Company: YC
  6. ** auth: CaoTing
  7. ** date: 2021\6\7
  8. ** desc: 房间列表返回协议
  9. *******************************************************************************/
  10. namespace Studio.WebSocket.Message
  11. {
  12. [System.Serializable]
  13. public class SelfRoomListResponseMessage:BaseWebSocketMessage
  14. {
  15. public List<RoomNetData> data;
  16. }
  17. [System.Serializable]
  18. public class ScenesItem
  19. {
  20. /// <summary>
  21. ///
  22. /// </summary>
  23. public int sceneID;
  24. /// <summary>
  25. ///
  26. /// </summary>
  27. public int roomID;
  28. /// <summary>
  29. ///
  30. /// </summary>
  31. public string sceneName;
  32. }
  33. /// <summary>
  34. /// 房间
  35. /// </summary>
  36. [System.Serializable]
  37. public class RoomNetData
  38. {
  39. /// <summary>
  40. ///
  41. /// </summary>
  42. public int roomID;
  43. /// <summary>
  44. ///
  45. /// </summary>
  46. public int type;
  47. /// <summary>
  48. ///
  49. /// </summary>
  50. public string roomName;
  51. /// <summary>
  52. ///
  53. /// </summary>
  54. public string roomExplain;
  55. /// <summary>
  56. ///
  57. /// </summary>
  58. public string roomPassword;
  59. /// <summary>
  60. ///
  61. /// </summary>
  62. public int maxMember;
  63. /// <summary>
  64. ///
  65. /// </summary>
  66. public int roomType;
  67. /// <summary>
  68. ///
  69. /// </summary>
  70. public List<ScenesItem> scenes;
  71. /// <summary>
  72. ///
  73. /// </summary>
  74. public List<RoomGoodNetData> goods;
  75. /// <summary>
  76. ///
  77. /// </summary>
  78. public int number;
  79. /// <summary>
  80. ///
  81. /// </summary>
  82. public string nickName;
  83. }
  84. /// <summary>
  85. /// 房间物品
  86. /// </summary>
  87. [System.Serializable]
  88. public struct RoomGoodNetData
  89. {
  90. public int rid;
  91. public string art_id;
  92. public string goods_name;
  93. public string goods_extended;
  94. public int id;
  95. public string goods_info;
  96. public int status;
  97. public int scene_id;
  98. }
  99. }