Messages.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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_Auth_Challenge
  38. {
  39. [DataMember(Order = 1, IsRequired = true)]
  40. public uint Num
  41. {
  42. get;
  43. set;
  44. }
  45. [DataMember(Order = 2, IsRequired = true)]
  46. public uint Seed
  47. {
  48. get;
  49. set;
  50. }
  51. [DataMember(Order = 3)]
  52. public List<uint> Random
  53. {
  54. get;
  55. set;
  56. }
  57. }
  58. }