authentication.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // THIS CORNFILE IS GENERATED. DO NOT EDIT! 🌽
  2. #ifndef _AUTHENTICATIONH
  3. #define _AUTHENTICATIONH
  4. #include <optional>
  5. #include <vector>
  6. enum class CpuFamily {
  7. CPU_UNKNOWN = 0,
  8. CPU_X86 = 1,
  9. CPU_X86_64 = 2,
  10. CPU_PPC = 3,
  11. CPU_PPC_64 = 4,
  12. CPU_ARM = 5,
  13. CPU_IA64 = 6,
  14. CPU_SH = 7,
  15. CPU_MIPS = 8,
  16. CPU_BLACKFIN = 9,
  17. };
  18. enum class Os {
  19. OS_UNKNOWN = 0,
  20. OS_WINDOWS = 1,
  21. OS_OSX = 2,
  22. OS_IPHONE = 3,
  23. OS_S60 = 4,
  24. OS_LINUX = 5,
  25. OS_WINDOWS_CE = 6,
  26. OS_ANDROID = 7,
  27. OS_PALM = 8,
  28. OS_FREEBSD = 9,
  29. OS_BLACKBERRY = 10,
  30. OS_SONOS = 11,
  31. OS_LOGITECH = 12,
  32. OS_WP7 = 13,
  33. OS_ONKYO = 14,
  34. OS_PHILIPS = 15,
  35. OS_WD = 16,
  36. OS_VOLVO = 17,
  37. OS_TIVO = 18,
  38. OS_AWOX = 19,
  39. OS_MEEGO = 20,
  40. OS_QNXNTO = 21,
  41. OS_BCO = 22,
  42. };
  43. enum class AuthenticationType {
  44. AUTHENTICATION_USER_PASS = 0,
  45. AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS = 1,
  46. AUTHENTICATION_STORED_FACEBOOK_CREDENTIALS = 2,
  47. AUTHENTICATION_SPOTIFY_TOKEN = 3,
  48. AUTHENTICATION_FACEBOOK_TOKEN = 4,
  49. };
  50. class SystemInfo {
  51. public:
  52. CpuFamily cpu_family;
  53. Os os;
  54. std::optional<std::string> system_information_string;
  55. std::optional<std::string> device_id;
  56. static constexpr ReflectTypeID _TYPE_ID = ReflectTypeID::ClassSystemInfo;
  57. };
  58. class LoginCredentials {
  59. public:
  60. std::optional<std::string> username;
  61. AuthenticationType typ;
  62. std::optional<std::vector<uint8_t>> auth_data;
  63. static constexpr ReflectTypeID _TYPE_ID = ReflectTypeID::ClassLoginCredentials;
  64. };
  65. class ClientResponseEncrypted {
  66. public:
  67. LoginCredentials login_credentials;
  68. SystemInfo system_info;
  69. std::optional<std::string> version_string;
  70. static constexpr ReflectTypeID _TYPE_ID = ReflectTypeID::ClassClientResponseEncrypted;
  71. };
  72. #endif