Messages.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. using System.Collections.Generic;
  2. using System.Runtime.Serialization;
  3. using ProtoBuf;
  4. namespace Robot.Protos
  5. {
  6. public static class MessageOpcode
  7. {
  8. public const ushort CMSG_AUTHLOGONPERMIT = 800;
  9. public const ushort CMSG_OTP_PASSWORD = 801;
  10. public const ushort CMSG_PPC_PASSWORD = 802;
  11. public const ushort CMSG_AUTHLOGONCHALLENGE = 803;
  12. public const ushort CMSG_AUTHLOGONCHALLENGE_2 = 804;
  13. public const ushort CMSG_AUTHLOGONPROOF = 805;
  14. public const ushort SMSG_AUTH_LOGON_CHALLENGE_RESPONSE = 900;
  15. public const ushort SMSG_REALM_LOGON_RESPONSE = 901;
  16. public const ushort SMSG_REALM_LIST = 902;
  17. public const ushort SMSG_LOCK_FOR_SAFE_TIME = 903;
  18. public const ushort SMSG_PASSWORD_PROTECT_TYPE = 904;
  19. }
  20. [DataContract]
  21. public class CMSG_AuthLogonPermit
  22. {
  23. [DataMember(Order = 1, IsRequired = true)]
  24. public string Account
  25. {
  26. get;
  27. set;
  28. }
  29. [DataMember(Order = 2, IsRequired = true)]
  30. public string PasswordMd5
  31. {
  32. get;
  33. set;
  34. }
  35. }
  36. [DataContract]
  37. public class SMSG_Lock_For_Safe_Time
  38. {
  39. [DataMember(Order = 1, IsRequired = true)]
  40. public uint Time
  41. {
  42. get;
  43. set;
  44. }
  45. }
  46. [DataContract]
  47. public class SMSG_Password_Protect_Type
  48. {
  49. [DataMember(Order = 1, IsRequired = true)]
  50. public uint Code
  51. {
  52. get;
  53. set;
  54. }
  55. [DataMember(Order = 2, IsRequired = true)]
  56. public uint SubCode
  57. {
  58. get;
  59. set;
  60. }
  61. [DataMember(Order = 3, IsRequired = true)]
  62. public uint PasswordProtectType
  63. {
  64. get;
  65. set;
  66. }
  67. [DataMember(Order = 4, IsRequired = false)]
  68. public byte[] PpcCoordinate
  69. {
  70. get;
  71. set;
  72. }
  73. }
  74. [DataContract]
  75. public class SMSG_Auth_Challenge
  76. {
  77. [DataMember(Order = 1, IsRequired = true)]
  78. public uint Num
  79. {
  80. get;
  81. set;
  82. }
  83. [DataMember(Order = 2, IsRequired = true)]
  84. public uint Seed
  85. {
  86. get;
  87. set;
  88. }
  89. [DataMember(Order = 3)]
  90. public List<uint> Random
  91. {
  92. get;
  93. set;
  94. }
  95. }
  96. }