XmdsHttpProtolcols.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. using System.Collections;
  2. using System.Xml.Serialization;
  3. namespace XmdsBattleClient.Client
  4. {
  5. public enum XmdsHttpMsgID
  6. {
  7. Register = 1,
  8. Login = 2,
  9. Update = 29,
  10. ServerList = 101,
  11. Activation = 14,
  12. }
  13. public class XmdsHttpMessage
  14. {
  15. [XmlElement("status")]
  16. public string Status { get; set; }
  17. [XmlElement("message")]
  18. public string Message { get; set; }
  19. }
  20. [XmlRoot("root")]
  21. public class LoginMessage : XmdsHttpMessage
  22. {
  23. [XmlElement("username")]
  24. public string Username { get; set; }
  25. [XmlElement("time")]
  26. public ulong TimeStamp { get; set; }
  27. [XmlElement("sign")]
  28. public string Sign { get; set; }
  29. [XmlElement("srvlist")]
  30. public string Srvlist { get; set; }
  31. [XmlElement("recom")]
  32. public string RecomSrv { get; set; }
  33. [XmlElement("position")]
  34. public string Position { get; set; }
  35. [XmlElement("rolebasic")]
  36. public string Rolebasic { get; set; }
  37. [XmlElement("activation_code_src")]
  38. public string activationCode { get; set; }
  39. }
  40. [XmlRoot("root")]
  41. public class RegisterMessage : XmdsHttpMessage
  42. {
  43. [XmlElement("username")]
  44. public string Username { get; set; }
  45. [XmlElement("time")]
  46. public string Time { get; set; }
  47. [XmlElement("sign")]
  48. public string Sign { get; set; }
  49. }
  50. [XmlRoot("root")]
  51. public class SrvListMessage : XmdsHttpMessage
  52. {
  53. [XmlElement("srvlist")]
  54. public string Srvlist { get; set; }
  55. [XmlElement("recom")]
  56. public string RecomSrv { get; set; }
  57. [XmlElement("rolebasic")]
  58. public string Rolebasic { get; set; }
  59. }
  60. [XmlRoot("root")]
  61. public class UpdateVersionMessage : XmdsHttpMessage
  62. {
  63. [XmlElement("isupdate")]
  64. public string isupdate;
  65. [XmlElement("updateurl")]
  66. public string updateurl;
  67. [XmlElement("srvstate")]
  68. public string srvstate;
  69. [XmlElement("starttime")]
  70. public string starttime;
  71. [XmlElement("endtime")]
  72. public string endtime;
  73. [XmlElement("bbsurl")]
  74. public string bbsurl;
  75. [XmlElement("content")]
  76. public string content;
  77. [XmlElement("sys_notice_state")]
  78. public string noticeState;
  79. [XmlElement("sys_content")]
  80. public string noticeContent;
  81. [XmlElement("update_version_url")]
  82. public string resUrl;
  83. }
  84. [XmlRoot("root")]
  85. public class ActivationMessage : XmdsHttpMessage
  86. {
  87. }
  88. }