BaseWebSocketMessage.cs 814 B

1234567891011121314151617181920212223242526272829
  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: 大厅socket接收协议基类
  9. *******************************************************************************/
  10. namespace Studio.WebSocket.Message
  11. {
  12. [System.Serializable]
  13. public class BaseWebSocketMessage
  14. {
  15. public bool response = false;
  16. public bool notification = false;
  17. public string method;
  18. public int id =-1;
  19. public bool ok;
  20. public WebSocketErrorCode errorCode = null;
  21. }
  22. [System.Serializable]
  23. public class WebSocketErrorCode
  24. {
  25. public int code=-1;
  26. public string message;
  27. }
  28. }