1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EGCSystemMsg {
6 Invalid = 0,
7 Multi = 1,
8 GenericReply = 10,
9 SystemBase = 50,
10 AchievementAwarded = 51,
11 ConCommand = 52,
12 StartPlaying = 53,
13 StopPlaying = 54,
14 StartGameserver = 55,
15 StopGameserver = 56,
16 WGRequest = 57,
17 WGResponse = 58,
18 GetUserGameStatsSchema = 59,
19 GetUserGameStatsSchemaResponse = 60,
20 GetUserStatsDEPRECATED = 61,
21 GetUserStatsResponse = 62,
22 AppInfoUpdated = 63,
23 ValidateSession = 64,
24 ValidateSessionResponse = 65,
25 LookupAccountFromInput = 66,
26 SendHTTPRequest = 67,
27 SendHTTPRequestResponse = 68,
28 PreTestSetup = 69,
29 RecordSupportAction = 70,
30 DEPRECATED = 71,
31 ReceiveInterAppMessage = 73,
32 FindAccounts = 74,
33 PostAlert = 75,
34 GetLicenses = 76,
35 GetUserStats = 77,
36 GetCommands = 78,
37 GetCommandsResponse = 79,
38 AddFreeLicense = 80,
39 AddFreeLicenseResponse = 81,
40 GetIPLocation = 82,
41 GetIPLocationResponse = 83,
42 SystemStatsSchema = 84,
43 GetSystemStats = 85,
44 GetSystemStatsResponse = 86,
45 SendEmail = 87,
46 SendEmailResponse = 88,
47 GetEmailTemplate = 89,
48 GetEmailTemplateResponse = 90,
49 GrantGuestPass = 91,
50 GrantGuestPassResponse = 92,
51 GetAccountDetails = 93,
52 GetAccountDetailsResponse = 94,
53 GetPersonaNames = 95,
54 GetPersonaNamesResponse = 96,
55 MultiplexMsg = 97,
56 MultiplexMsgResponse = 98,
57 WebAPIRegisterInterfaces = 101,
58 WebAPIJobRequest = 102,
59 WebAPIJobRequestHttpResponse = 104,
60 WebAPIJobRequestForwardResponse = 105,
61 MemCachedGet = 200,
62 MemCachedGetResponse = 201,
63 MemCachedSet = 202,
64 MemCachedDelete = 203,
65 MemCachedStats = 204,
66 MemCachedStatsResponse = 205,
67 MasterSetDirectory = 220,
68 MasterSetDirectoryResponse = 221,
69 MasterSetWebAPIRouting = 222,
70 MasterSetWebAPIRoutingResponse = 223,
71 MasterSetClientMsgRouting = 224,
72 MasterSetClientMsgRoutingResponse = 225,
73 SetOptions = 226,
74 SetOptionsResponse = 227,
75 SystemBase2 = 500,
76 GetPurchaseTrustStatus = 501,
77 GetPurchaseTrustStatusResponse = 502,
78 UpdateSession = 503,
79 GCAccountVacStatusChange = 504,
80 CheckFriendship = 505,
81 CheckFriendshipResponse = 506,
82 GetPartnerAccountLink = 507,
83 GetPartnerAccountLinkResponse = 508,
84 DPPartnerMicroTxns = 512,
85 DPPartnerMicroTxnsResponse = 513,
86 VacVerificationChange = 518,
87 AccountPhoneNumberChange = 519,
88 InviteUserToLobby = 523,
89 GetGamePersonalDataCategoriesRequest = 524,
90 GetGamePersonalDataCategoriesResponse = 525,
91 GetGamePersonalDataEntriesRequest = 526,
92 GetGamePersonalDataEntriesResponse = 527,
93 TerminateGamePersonalDataEntriesRequest = 528,
94 TerminateGamePersonalDataEntriesResponse = 529,
95 RecurringSubscriptionStatusChange = 530,
96 DirectServiceMethod = 531,
97 DirectServiceMethodResponse = 532,
98}
99
100impl EGCSystemMsg {
101 pub fn from_i32(val: i32) -> Option<Self> {
102 match val {
103 x if x == Self::Invalid as i32 => Some(Self::Invalid),
104 x if x == Self::Multi as i32 => Some(Self::Multi),
105 x if x == Self::GenericReply as i32 => Some(Self::GenericReply),
106 x if x == Self::SystemBase as i32 => Some(Self::SystemBase),
107 x if x == Self::AchievementAwarded as i32 => Some(Self::AchievementAwarded),
108 x if x == Self::ConCommand as i32 => Some(Self::ConCommand),
109 x if x == Self::StartPlaying as i32 => Some(Self::StartPlaying),
110 x if x == Self::StopPlaying as i32 => Some(Self::StopPlaying),
111 x if x == Self::StartGameserver as i32 => Some(Self::StartGameserver),
112 x if x == Self::StopGameserver as i32 => Some(Self::StopGameserver),
113 x if x == Self::WGRequest as i32 => Some(Self::WGRequest),
114 x if x == Self::WGResponse as i32 => Some(Self::WGResponse),
115 x if x == Self::GetUserGameStatsSchema as i32 => Some(Self::GetUserGameStatsSchema),
116 x if x == Self::GetUserGameStatsSchemaResponse as i32 => Some(Self::GetUserGameStatsSchemaResponse),
117 x if x == Self::GetUserStatsDEPRECATED as i32 => Some(Self::GetUserStatsDEPRECATED),
118 x if x == Self::GetUserStatsResponse as i32 => Some(Self::GetUserStatsResponse),
119 x if x == Self::AppInfoUpdated as i32 => Some(Self::AppInfoUpdated),
120 x if x == Self::ValidateSession as i32 => Some(Self::ValidateSession),
121 x if x == Self::ValidateSessionResponse as i32 => Some(Self::ValidateSessionResponse),
122 x if x == Self::LookupAccountFromInput as i32 => Some(Self::LookupAccountFromInput),
123 x if x == Self::SendHTTPRequest as i32 => Some(Self::SendHTTPRequest),
124 x if x == Self::SendHTTPRequestResponse as i32 => Some(Self::SendHTTPRequestResponse),
125 x if x == Self::PreTestSetup as i32 => Some(Self::PreTestSetup),
126 x if x == Self::RecordSupportAction as i32 => Some(Self::RecordSupportAction),
127 x if x == Self::DEPRECATED as i32 => Some(Self::DEPRECATED),
128 x if x == Self::ReceiveInterAppMessage as i32 => Some(Self::ReceiveInterAppMessage),
129 x if x == Self::FindAccounts as i32 => Some(Self::FindAccounts),
130 x if x == Self::PostAlert as i32 => Some(Self::PostAlert),
131 x if x == Self::GetLicenses as i32 => Some(Self::GetLicenses),
132 x if x == Self::GetUserStats as i32 => Some(Self::GetUserStats),
133 x if x == Self::GetCommands as i32 => Some(Self::GetCommands),
134 x if x == Self::GetCommandsResponse as i32 => Some(Self::GetCommandsResponse),
135 x if x == Self::AddFreeLicense as i32 => Some(Self::AddFreeLicense),
136 x if x == Self::AddFreeLicenseResponse as i32 => Some(Self::AddFreeLicenseResponse),
137 x if x == Self::GetIPLocation as i32 => Some(Self::GetIPLocation),
138 x if x == Self::GetIPLocationResponse as i32 => Some(Self::GetIPLocationResponse),
139 x if x == Self::SystemStatsSchema as i32 => Some(Self::SystemStatsSchema),
140 x if x == Self::GetSystemStats as i32 => Some(Self::GetSystemStats),
141 x if x == Self::GetSystemStatsResponse as i32 => Some(Self::GetSystemStatsResponse),
142 x if x == Self::SendEmail as i32 => Some(Self::SendEmail),
143 x if x == Self::SendEmailResponse as i32 => Some(Self::SendEmailResponse),
144 x if x == Self::GetEmailTemplate as i32 => Some(Self::GetEmailTemplate),
145 x if x == Self::GetEmailTemplateResponse as i32 => Some(Self::GetEmailTemplateResponse),
146 x if x == Self::GrantGuestPass as i32 => Some(Self::GrantGuestPass),
147 x if x == Self::GrantGuestPassResponse as i32 => Some(Self::GrantGuestPassResponse),
148 x if x == Self::GetAccountDetails as i32 => Some(Self::GetAccountDetails),
149 x if x == Self::GetAccountDetailsResponse as i32 => Some(Self::GetAccountDetailsResponse),
150 x if x == Self::GetPersonaNames as i32 => Some(Self::GetPersonaNames),
151 x if x == Self::GetPersonaNamesResponse as i32 => Some(Self::GetPersonaNamesResponse),
152 x if x == Self::MultiplexMsg as i32 => Some(Self::MultiplexMsg),
153 x if x == Self::MultiplexMsgResponse as i32 => Some(Self::MultiplexMsgResponse),
154 x if x == Self::WebAPIRegisterInterfaces as i32 => Some(Self::WebAPIRegisterInterfaces),
155 x if x == Self::WebAPIJobRequest as i32 => Some(Self::WebAPIJobRequest),
156 x if x == Self::WebAPIJobRequestHttpResponse as i32 => Some(Self::WebAPIJobRequestHttpResponse),
157 x if x == Self::WebAPIJobRequestForwardResponse as i32 => Some(Self::WebAPIJobRequestForwardResponse),
158 x if x == Self::MemCachedGet as i32 => Some(Self::MemCachedGet),
159 x if x == Self::MemCachedGetResponse as i32 => Some(Self::MemCachedGetResponse),
160 x if x == Self::MemCachedSet as i32 => Some(Self::MemCachedSet),
161 x if x == Self::MemCachedDelete as i32 => Some(Self::MemCachedDelete),
162 x if x == Self::MemCachedStats as i32 => Some(Self::MemCachedStats),
163 x if x == Self::MemCachedStatsResponse as i32 => Some(Self::MemCachedStatsResponse),
164 x if x == Self::MasterSetDirectory as i32 => Some(Self::MasterSetDirectory),
165 x if x == Self::MasterSetDirectoryResponse as i32 => Some(Self::MasterSetDirectoryResponse),
166 x if x == Self::MasterSetWebAPIRouting as i32 => Some(Self::MasterSetWebAPIRouting),
167 x if x == Self::MasterSetWebAPIRoutingResponse as i32 => Some(Self::MasterSetWebAPIRoutingResponse),
168 x if x == Self::MasterSetClientMsgRouting as i32 => Some(Self::MasterSetClientMsgRouting),
169 x if x == Self::MasterSetClientMsgRoutingResponse as i32 => Some(Self::MasterSetClientMsgRoutingResponse),
170 x if x == Self::SetOptions as i32 => Some(Self::SetOptions),
171 x if x == Self::SetOptionsResponse as i32 => Some(Self::SetOptionsResponse),
172 x if x == Self::SystemBase2 as i32 => Some(Self::SystemBase2),
173 x if x == Self::GetPurchaseTrustStatus as i32 => Some(Self::GetPurchaseTrustStatus),
174 x if x == Self::GetPurchaseTrustStatusResponse as i32 => Some(Self::GetPurchaseTrustStatusResponse),
175 x if x == Self::UpdateSession as i32 => Some(Self::UpdateSession),
176 x if x == Self::GCAccountVacStatusChange as i32 => Some(Self::GCAccountVacStatusChange),
177 x if x == Self::CheckFriendship as i32 => Some(Self::CheckFriendship),
178 x if x == Self::CheckFriendshipResponse as i32 => Some(Self::CheckFriendshipResponse),
179 x if x == Self::GetPartnerAccountLink as i32 => Some(Self::GetPartnerAccountLink),
180 x if x == Self::GetPartnerAccountLinkResponse as i32 => Some(Self::GetPartnerAccountLinkResponse),
181 x if x == Self::DPPartnerMicroTxns as i32 => Some(Self::DPPartnerMicroTxns),
182 x if x == Self::DPPartnerMicroTxnsResponse as i32 => Some(Self::DPPartnerMicroTxnsResponse),
183 x if x == Self::VacVerificationChange as i32 => Some(Self::VacVerificationChange),
184 x if x == Self::AccountPhoneNumberChange as i32 => Some(Self::AccountPhoneNumberChange),
185 x if x == Self::InviteUserToLobby as i32 => Some(Self::InviteUserToLobby),
186 x if x == Self::GetGamePersonalDataCategoriesRequest as i32 => Some(Self::GetGamePersonalDataCategoriesRequest),
187 x if x == Self::GetGamePersonalDataCategoriesResponse as i32 => Some(Self::GetGamePersonalDataCategoriesResponse),
188 x if x == Self::GetGamePersonalDataEntriesRequest as i32 => Some(Self::GetGamePersonalDataEntriesRequest),
189 x if x == Self::GetGamePersonalDataEntriesResponse as i32 => Some(Self::GetGamePersonalDataEntriesResponse),
190 x if x == Self::TerminateGamePersonalDataEntriesRequest as i32 => Some(Self::TerminateGamePersonalDataEntriesRequest),
191 x if x == Self::TerminateGamePersonalDataEntriesResponse as i32 => Some(Self::TerminateGamePersonalDataEntriesResponse),
192 x if x == Self::RecurringSubscriptionStatusChange as i32 => Some(Self::RecurringSubscriptionStatusChange),
193 x if x == Self::DirectServiceMethod as i32 => Some(Self::DirectServiceMethod),
194 x if x == Self::DirectServiceMethodResponse as i32 => Some(Self::DirectServiceMethodResponse),
195 _ => None,
196 }
197 }
198}