warframestat_rs/apis/
worldstate_api.rs

1/*
2 * WarframeStat.us API
3 *
4 * Simple API for data from the game Warframe. [Parser Docs](https://wfcd.github.io/warframe-worldstate-parser/) [Items Types](https://github.com/WFCD/warframe-items/blob/master/index.d.ts) 
5 *
6 * The version of the OpenAPI document: living
7 * Contact: tobiah@protonmail.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12use reqwest;
13
14use crate::apis::ResponseContent;
15use super::{Error, configuration};
16
17
18/// struct for typed errors of method [`platform_alerts_get`]
19#[derive(Debug, Clone, Serialize, Deserialize)]
20#[serde(untagged)]
21pub enum PlatformAlertsGetError {
22    Status400(crate::models::InlineResponse400),
23    Status500(crate::models::InlineResponse400),
24    UnknownValue(serde_json::Value),
25}
26
27/// struct for typed errors of method [`platform_arbitration_get`]
28#[derive(Debug, Clone, Serialize, Deserialize)]
29#[serde(untagged)]
30pub enum PlatformArbitrationGetError {
31    Status400(crate::models::InlineResponse400),
32    Status500(crate::models::InlineResponse400),
33    UnknownValue(serde_json::Value),
34}
35
36/// struct for typed errors of method [`platform_cambion_cycle_get`]
37#[derive(Debug, Clone, Serialize, Deserialize)]
38#[serde(untagged)]
39pub enum PlatformCambionCycleGetError {
40    Status400(crate::models::InlineResponse400),
41    Status500(crate::models::InlineResponse400),
42    UnknownValue(serde_json::Value),
43}
44
45/// struct for typed errors of method [`platform_cetus_cycle_get`]
46#[derive(Debug, Clone, Serialize, Deserialize)]
47#[serde(untagged)]
48pub enum PlatformCetusCycleGetError {
49    Status400(crate::models::InlineResponse400),
50    Status500(crate::models::InlineResponse400),
51    UnknownValue(serde_json::Value),
52}
53
54/// struct for typed errors of method [`platform_conclave_challenges_get`]
55#[derive(Debug, Clone, Serialize, Deserialize)]
56#[serde(untagged)]
57pub enum PlatformConclaveChallengesGetError {
58    Status400(crate::models::InlineResponse400),
59    Status500(crate::models::InlineResponse400),
60    UnknownValue(serde_json::Value),
61}
62
63/// struct for typed errors of method [`platform_construction_progress_get`]
64#[derive(Debug, Clone, Serialize, Deserialize)]
65#[serde(untagged)]
66pub enum PlatformConstructionProgressGetError {
67    Status400(crate::models::InlineResponse400),
68    Status500(crate::models::InlineResponse400),
69    UnknownValue(serde_json::Value),
70}
71
72/// struct for typed errors of method [`platform_daily_deals_get`]
73#[derive(Debug, Clone, Serialize, Deserialize)]
74#[serde(untagged)]
75pub enum PlatformDailyDealsGetError {
76    Status400(crate::models::InlineResponse400),
77    Status500(crate::models::InlineResponse400),
78    UnknownValue(serde_json::Value),
79}
80
81/// struct for typed errors of method [`platform_dark_sectors_get`]
82#[derive(Debug, Clone, Serialize, Deserialize)]
83#[serde(untagged)]
84pub enum PlatformDarkSectorsGetError {
85    Status400(crate::models::InlineResponse400),
86    Status500(crate::models::InlineResponse400),
87    UnknownValue(serde_json::Value),
88}
89
90/// struct for typed errors of method [`platform_earth_cycle_get`]
91#[derive(Debug, Clone, Serialize, Deserialize)]
92#[serde(untagged)]
93pub enum PlatformEarthCycleGetError {
94    Status400(crate::models::InlineResponse400),
95    Status500(crate::models::InlineResponse400),
96    UnknownValue(serde_json::Value),
97}
98
99/// struct for typed errors of method [`platform_events_get`]
100#[derive(Debug, Clone, Serialize, Deserialize)]
101#[serde(untagged)]
102pub enum PlatformEventsGetError {
103    Status400(crate::models::InlineResponse400),
104    Status500(crate::models::InlineResponse400),
105    UnknownValue(serde_json::Value),
106}
107
108/// struct for typed errors of method [`platform_fissures_get`]
109#[derive(Debug, Clone, Serialize, Deserialize)]
110#[serde(untagged)]
111pub enum PlatformFissuresGetError {
112    Status400(crate::models::InlineResponse400),
113    Status500(crate::models::InlineResponse400),
114    UnknownValue(serde_json::Value),
115}
116
117/// struct for typed errors of method [`platform_flash_sales_get`]
118#[derive(Debug, Clone, Serialize, Deserialize)]
119#[serde(untagged)]
120pub enum PlatformFlashSalesGetError {
121    Status400(crate::models::InlineResponse400),
122    Status500(crate::models::InlineResponse400),
123    UnknownValue(serde_json::Value),
124}
125
126/// struct for typed errors of method [`platform_get`]
127#[derive(Debug, Clone, Serialize, Deserialize)]
128#[serde(untagged)]
129pub enum PlatformGetError {
130    Status400(crate::models::InlineResponse400),
131    Status404(crate::models::InlineResponse404),
132    Status500(crate::models::InlineResponse400),
133    UnknownValue(serde_json::Value),
134}
135
136/// struct for typed errors of method [`platform_global_upgrades_get`]
137#[derive(Debug, Clone, Serialize, Deserialize)]
138#[serde(untagged)]
139pub enum PlatformGlobalUpgradesGetError {
140    Status400(crate::models::InlineResponse400),
141    Status500(crate::models::InlineResponse400),
142    UnknownValue(serde_json::Value),
143}
144
145/// struct for typed errors of method [`platform_invasions_get`]
146#[derive(Debug, Clone, Serialize, Deserialize)]
147#[serde(untagged)]
148pub enum PlatformInvasionsGetError {
149    Status400(crate::models::InlineResponse400),
150    Status500(crate::models::InlineResponse400),
151    UnknownValue(serde_json::Value),
152}
153
154/// struct for typed errors of method [`platform_kuva_get`]
155#[derive(Debug, Clone, Serialize, Deserialize)]
156#[serde(untagged)]
157pub enum PlatformKuvaGetError {
158    UnknownValue(serde_json::Value),
159}
160
161/// struct for typed errors of method [`platform_news_get`]
162#[derive(Debug, Clone, Serialize, Deserialize)]
163#[serde(untagged)]
164pub enum PlatformNewsGetError {
165    Status400(crate::models::InlineResponse400),
166    Status500(crate::models::InlineResponse400),
167    UnknownValue(serde_json::Value),
168}
169
170/// struct for typed errors of method [`platform_nightwave_get`]
171#[derive(Debug, Clone, Serialize, Deserialize)]
172#[serde(untagged)]
173pub enum PlatformNightwaveGetError {
174    Status400(crate::models::InlineResponse400),
175    Status500(crate::models::InlineResponse400),
176    UnknownValue(serde_json::Value),
177}
178
179/// struct for typed errors of method [`platform_persistent_enemies_get`]
180#[derive(Debug, Clone, Serialize, Deserialize)]
181#[serde(untagged)]
182pub enum PlatformPersistentEnemiesGetError {
183    Status400(crate::models::InlineResponse400),
184    Status500(crate::models::InlineResponse400),
185    UnknownValue(serde_json::Value),
186}
187
188/// struct for typed errors of method [`platform_rivens_get`]
189#[derive(Debug, Clone, Serialize, Deserialize)]
190#[serde(untagged)]
191pub enum PlatformRivensGetError {
192    Status400(crate::models::InlineResponse400),
193    Status500(crate::models::InlineResponse400),
194    UnknownValue(serde_json::Value),
195}
196
197/// struct for typed errors of method [`platform_rivens_search_query_get`]
198#[derive(Debug, Clone, Serialize, Deserialize)]
199#[serde(untagged)]
200pub enum PlatformRivensSearchQueryGetError {
201    Status400(crate::models::InlineResponse400),
202    Status500(crate::models::InlineResponse400),
203    UnknownValue(serde_json::Value),
204}
205
206/// struct for typed errors of method [`platform_sentient_outposts_get`]
207#[derive(Debug, Clone, Serialize, Deserialize)]
208#[serde(untagged)]
209pub enum PlatformSentientOutpostsGetError {
210    Status400(crate::models::InlineResponse400),
211    Status500(crate::models::InlineResponse400),
212    UnknownValue(serde_json::Value),
213}
214
215/// struct for typed errors of method [`platform_simaris_get`]
216#[derive(Debug, Clone, Serialize, Deserialize)]
217#[serde(untagged)]
218pub enum PlatformSimarisGetError {
219    Status400(crate::models::InlineResponse400),
220    Status500(crate::models::InlineResponse400),
221    UnknownValue(serde_json::Value),
222}
223
224/// struct for typed errors of method [`platform_sortie_get`]
225#[derive(Debug, Clone, Serialize, Deserialize)]
226#[serde(untagged)]
227pub enum PlatformSortieGetError {
228    Status400(crate::models::InlineResponse400),
229    Status500(crate::models::InlineResponse400),
230    UnknownValue(serde_json::Value),
231}
232
233/// struct for typed errors of method [`platform_steel_path_get`]
234#[derive(Debug, Clone, Serialize, Deserialize)]
235#[serde(untagged)]
236pub enum PlatformSteelPathGetError {
237    Status400(crate::models::InlineResponse400),
238    Status500(crate::models::InlineResponse400),
239    UnknownValue(serde_json::Value),
240}
241
242/// struct for typed errors of method [`platform_syndicate_missions_get`]
243#[derive(Debug, Clone, Serialize, Deserialize)]
244#[serde(untagged)]
245pub enum PlatformSyndicateMissionsGetError {
246    Status400(crate::models::InlineResponse400),
247    Status500(crate::models::InlineResponse400),
248    UnknownValue(serde_json::Value),
249}
250
251/// struct for typed errors of method [`platform_timestamp_get`]
252#[derive(Debug, Clone, Serialize, Deserialize)]
253#[serde(untagged)]
254pub enum PlatformTimestampGetError {
255    Status400(crate::models::InlineResponse400),
256    Status500(crate::models::InlineResponse400),
257    UnknownValue(serde_json::Value),
258}
259
260/// struct for typed errors of method [`platform_vallis_cycle_get`]
261#[derive(Debug, Clone, Serialize, Deserialize)]
262#[serde(untagged)]
263pub enum PlatformVallisCycleGetError {
264    Status400(crate::models::InlineResponse400),
265    Status500(crate::models::InlineResponse400),
266    UnknownValue(serde_json::Value),
267}
268
269/// struct for typed errors of method [`platform_void_trader_get`]
270#[derive(Debug, Clone, Serialize, Deserialize)]
271#[serde(untagged)]
272pub enum PlatformVoidTraderGetError {
273    Status400(crate::models::InlineResponse400),
274    Status500(crate::models::InlineResponse400),
275    UnknownValue(serde_json::Value),
276}
277
278
279/// Description and rewards for Alerts
280pub async fn platform_alerts_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::Alert, Error<PlatformAlertsGetError>> {
281    let local_var_configuration = configuration;
282
283    let local_var_client = &local_var_configuration.client;
284
285    let local_var_uri_str = format!("{}/{platform}/alerts", local_var_configuration.base_path, platform=platform);
286    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
287
288    if let Some(ref local_var_str) = language {
289        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
290    }
291    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
292        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
293    }
294    if let Some(local_var_param_value) = accept_language {
295        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
296    }
297
298    let local_var_req = local_var_req_builder.build()?;
299    let local_var_resp = local_var_client.execute(local_var_req).await?;
300
301    let local_var_status = local_var_resp.status();
302    let local_var_content = local_var_resp.text().await?;
303
304    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
305        serde_json::from_str(&local_var_content).map_err(Error::from)
306    } else {
307        let local_var_entity: Option<PlatformAlertsGetError> = serde_json::from_str(&local_var_content).ok();
308        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
309        Err(Error::ResponseError(local_var_error))
310    }
311}
312
313/// Description of the currently active arbitration
314pub async fn platform_arbitration_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::Arbitration, Error<PlatformArbitrationGetError>> {
315    let local_var_configuration = configuration;
316
317    let local_var_client = &local_var_configuration.client;
318
319    let local_var_uri_str = format!("{}/{platform}/arbitration", local_var_configuration.base_path, platform=platform);
320    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
321
322    if let Some(ref local_var_str) = language {
323        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
324    }
325    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
326        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
327    }
328    if let Some(local_var_param_value) = accept_language {
329        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
330    }
331
332    let local_var_req = local_var_req_builder.build()?;
333    let local_var_resp = local_var_client.execute(local_var_req).await?;
334
335    let local_var_status = local_var_resp.status();
336    let local_var_content = local_var_resp.text().await?;
337
338    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
339        serde_json::from_str(&local_var_content).map_err(Error::from)
340    } else {
341        let local_var_entity: Option<PlatformArbitrationGetError> = serde_json::from_str(&local_var_content).ok();
342        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
343        Err(Error::ResponseError(local_var_error))
344    }
345}
346
347/// Data on the Vome/Fass cycle for the Cambion Drift on Deimos
348pub async fn platform_cambion_cycle_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::CambionCycle, Error<PlatformCambionCycleGetError>> {
349    let local_var_configuration = configuration;
350
351    let local_var_client = &local_var_configuration.client;
352
353    let local_var_uri_str = format!("{}/{platform}/cambionCycle", local_var_configuration.base_path, platform=platform);
354    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
355
356    if let Some(ref local_var_str) = language {
357        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
358    }
359    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
360        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
361    }
362    if let Some(local_var_param_value) = accept_language {
363        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
364    }
365
366    let local_var_req = local_var_req_builder.build()?;
367    let local_var_resp = local_var_client.execute(local_var_req).await?;
368
369    let local_var_status = local_var_resp.status();
370    let local_var_content = local_var_resp.text().await?;
371
372    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
373        serde_json::from_str(&local_var_content).map_err(Error::from)
374    } else {
375        let local_var_entity: Option<PlatformCambionCycleGetError> = serde_json::from_str(&local_var_content).ok();
376        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
377        Err(Error::ResponseError(local_var_error))
378    }
379}
380
381/// Data on the day/night cycle for Cetus on Earth
382pub async fn platform_cetus_cycle_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::CetusCycle, Error<PlatformCetusCycleGetError>> {
383    let local_var_configuration = configuration;
384
385    let local_var_client = &local_var_configuration.client;
386
387    let local_var_uri_str = format!("{}/{platform}/cetusCycle", local_var_configuration.base_path, platform=platform);
388    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
389
390    if let Some(ref local_var_str) = language {
391        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
392    }
393    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
394        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
395    }
396    if let Some(local_var_param_value) = accept_language {
397        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
398    }
399
400    let local_var_req = local_var_req_builder.build()?;
401    let local_var_resp = local_var_client.execute(local_var_req).await?;
402
403    let local_var_status = local_var_resp.status();
404    let local_var_content = local_var_resp.text().await?;
405
406    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
407        serde_json::from_str(&local_var_content).map_err(Error::from)
408    } else {
409        let local_var_entity: Option<PlatformCetusCycleGetError> = serde_json::from_str(&local_var_content).ok();
410        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
411        Err(Error::ResponseError(local_var_error))
412    }
413}
414
415/// Data on each day and week's conclave challenges
416pub async fn platform_conclave_challenges_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<serde_json::Value>, Error<PlatformConclaveChallengesGetError>> {
417    let local_var_configuration = configuration;
418
419    let local_var_client = &local_var_configuration.client;
420
421    let local_var_uri_str = format!("{}/{platform}/conclaveChallenges", local_var_configuration.base_path, platform=platform);
422    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
423
424    if let Some(ref local_var_str) = language {
425        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
426    }
427    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
428        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
429    }
430    if let Some(local_var_param_value) = accept_language {
431        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
432    }
433
434    let local_var_req = local_var_req_builder.build()?;
435    let local_var_resp = local_var_client.execute(local_var_req).await?;
436
437    let local_var_status = local_var_resp.status();
438    let local_var_content = local_var_resp.text().await?;
439
440    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
441        serde_json::from_str(&local_var_content).map_err(Error::from)
442    } else {
443        let local_var_entity: Option<PlatformConclaveChallengesGetError> = serde_json::from_str(&local_var_content).ok();
444        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
445        Err(Error::ResponseError(local_var_error))
446    }
447}
448
449/// Construction percentages for showing how far constructed the enemy fleets are.
450pub async fn platform_construction_progress_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::Construction, Error<PlatformConstructionProgressGetError>> {
451    let local_var_configuration = configuration;
452
453    let local_var_client = &local_var_configuration.client;
454
455    let local_var_uri_str = format!("{}/{platform}/constructionProgress", local_var_configuration.base_path, platform=platform);
456    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
457
458    if let Some(ref local_var_str) = language {
459        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
460    }
461    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
462        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
463    }
464    if let Some(local_var_param_value) = accept_language {
465        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
466    }
467
468    let local_var_req = local_var_req_builder.build()?;
469    let local_var_resp = local_var_client.execute(local_var_req).await?;
470
471    let local_var_status = local_var_resp.status();
472    let local_var_content = local_var_resp.text().await?;
473
474    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
475        serde_json::from_str(&local_var_content).map_err(Error::from)
476    } else {
477        let local_var_entity: Option<PlatformConstructionProgressGetError> = serde_json::from_str(&local_var_content).ok();
478        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
479        Err(Error::ResponseError(local_var_error))
480    }
481}
482
483/// Darvo's Daily Deal details
484pub async fn platform_daily_deals_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<serde_json::Value>, Error<PlatformDailyDealsGetError>> {
485    let local_var_configuration = configuration;
486
487    let local_var_client = &local_var_configuration.client;
488
489    let local_var_uri_str = format!("{}/{platform}/dailyDeals", local_var_configuration.base_path, platform=platform);
490    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
491
492    if let Some(ref local_var_str) = language {
493        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
494    }
495    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
496        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
497    }
498    if let Some(local_var_param_value) = accept_language {
499        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
500    }
501
502    let local_var_req = local_var_req_builder.build()?;
503    let local_var_resp = local_var_client.execute(local_var_req).await?;
504
505    let local_var_status = local_var_resp.status();
506    let local_var_content = local_var_resp.text().await?;
507
508    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
509        serde_json::from_str(&local_var_content).map_err(Error::from)
510    } else {
511        let local_var_entity: Option<PlatformDailyDealsGetError> = serde_json::from_str(&local_var_content).ok();
512        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
513        Err(Error::ResponseError(local_var_error))
514    }
515}
516
517/// Dark Sector (Rail Wars) data and history. Digital Extremes has emptied several of these.
518pub async fn platform_dark_sectors_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<serde_json::Value>, Error<PlatformDarkSectorsGetError>> {
519    let local_var_configuration = configuration;
520
521    let local_var_client = &local_var_configuration.client;
522
523    let local_var_uri_str = format!("{}/{platform}/darkSectors", local_var_configuration.base_path, platform=platform);
524    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
525
526    if let Some(ref local_var_str) = language {
527        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
528    }
529    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
530        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
531    }
532    if let Some(local_var_param_value) = accept_language {
533        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
534    }
535
536    let local_var_req = local_var_req_builder.build()?;
537    let local_var_resp = local_var_client.execute(local_var_req).await?;
538
539    let local_var_status = local_var_resp.status();
540    let local_var_content = local_var_resp.text().await?;
541
542    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
543        serde_json::from_str(&local_var_content).map_err(Error::from)
544    } else {
545        let local_var_entity: Option<PlatformDarkSectorsGetError> = serde_json::from_str(&local_var_content).ok();
546        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
547        Err(Error::ResponseError(local_var_error))
548    }
549}
550
551/// The current Earth day/night cycle progress.
552pub async fn platform_earth_cycle_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::EarthCycle, Error<PlatformEarthCycleGetError>> {
553    let local_var_configuration = configuration;
554
555    let local_var_client = &local_var_configuration.client;
556
557    let local_var_uri_str = format!("{}/{platform}/earthCycle", local_var_configuration.base_path, platform=platform);
558    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
559
560    if let Some(ref local_var_str) = language {
561        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
562    }
563    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
564        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
565    }
566    if let Some(local_var_param_value) = accept_language {
567        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
568    }
569
570    let local_var_req = local_var_req_builder.build()?;
571    let local_var_resp = local_var_client.execute(local_var_req).await?;
572
573    let local_var_status = local_var_resp.status();
574    let local_var_content = local_var_resp.text().await?;
575
576    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
577        serde_json::from_str(&local_var_content).map_err(Error::from)
578    } else {
579        let local_var_entity: Option<PlatformEarthCycleGetError> = serde_json::from_str(&local_var_content).ok();
580        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
581        Err(Error::ResponseError(local_var_error))
582    }
583}
584
585/// Events, such as Fomorian Attacks are included here
586pub async fn platform_events_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<crate::models::Event>, Error<PlatformEventsGetError>> {
587    let local_var_configuration = configuration;
588
589    let local_var_client = &local_var_configuration.client;
590
591    let local_var_uri_str = format!("{}/{platform}/events", local_var_configuration.base_path, platform=platform);
592    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
593
594    if let Some(ref local_var_str) = language {
595        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
596    }
597    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
598        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
599    }
600    if let Some(local_var_param_value) = accept_language {
601        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
602    }
603
604    let local_var_req = local_var_req_builder.build()?;
605    let local_var_resp = local_var_client.execute(local_var_req).await?;
606
607    let local_var_status = local_var_resp.status();
608    let local_var_content = local_var_resp.text().await?;
609
610    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
611        serde_json::from_str(&local_var_content).map_err(Error::from)
612    } else {
613        let local_var_entity: Option<PlatformEventsGetError> = serde_json::from_str(&local_var_content).ok();
614        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
615        Err(Error::ResponseError(local_var_error))
616    }
617}
618
619/// Information about current Void Fissure missions
620pub async fn platform_fissures_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<crate::models::Fissure>, Error<PlatformFissuresGetError>> {
621    let local_var_configuration = configuration;
622
623    let local_var_client = &local_var_configuration.client;
624
625    let local_var_uri_str = format!("{}/{platform}/fissures", local_var_configuration.base_path, platform=platform);
626    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
627
628    if let Some(ref local_var_str) = language {
629        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
630    }
631    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
632        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
633    }
634    if let Some(local_var_param_value) = accept_language {
635        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
636    }
637
638    let local_var_req = local_var_req_builder.build()?;
639    let local_var_resp = local_var_client.execute(local_var_req).await?;
640
641    let local_var_status = local_var_resp.status();
642    let local_var_content = local_var_resp.text().await?;
643
644    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
645        serde_json::from_str(&local_var_content).map_err(Error::from)
646    } else {
647        let local_var_entity: Option<PlatformFissuresGetError> = serde_json::from_str(&local_var_content).ok();
648        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
649        Err(Error::ResponseError(local_var_error))
650    }
651}
652
653/// Popular Deals, discounts, featured deals.
654pub async fn platform_flash_sales_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<serde_json::Value>, Error<PlatformFlashSalesGetError>> {
655    let local_var_configuration = configuration;
656
657    let local_var_client = &local_var_configuration.client;
658
659    let local_var_uri_str = format!("{}/{platform}/flashSales", local_var_configuration.base_path, platform=platform);
660    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
661
662    if let Some(ref local_var_str) = language {
663        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
664    }
665    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
666        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
667    }
668    if let Some(local_var_param_value) = accept_language {
669        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
670    }
671
672    let local_var_req = local_var_req_builder.build()?;
673    let local_var_resp = local_var_client.execute(local_var_req).await?;
674
675    let local_var_status = local_var_resp.status();
676    let local_var_content = local_var_resp.text().await?;
677
678    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
679        serde_json::from_str(&local_var_content).map_err(Error::from)
680    } else {
681        let local_var_entity: Option<PlatformFlashSalesGetError> = serde_json::from_str(&local_var_content).ok();
682        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
683        Err(Error::ResponseError(local_var_error))
684    }
685}
686
687/// The full translated Warframe Worldstate
688pub async fn platform_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::Ws, Error<PlatformGetError>> {
689    let local_var_configuration = configuration;
690
691    let local_var_client = &local_var_configuration.client;
692
693    let local_var_uri_str = format!("{}/{platform}", local_var_configuration.base_path, platform=platform);
694    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
695
696    if let Some(ref local_var_str) = language {
697        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
698    }
699    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
700        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
701    }
702    if let Some(local_var_param_value) = accept_language {
703        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
704    }
705
706    let local_var_req = local_var_req_builder.build()?;
707    let local_var_resp = local_var_client.execute(local_var_req).await?;
708
709    let local_var_status = local_var_resp.status();
710    let local_var_content = local_var_resp.text().await?;
711
712    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
713        serde_json::from_str(&local_var_content).map_err(Error::from)
714    } else {
715        let local_var_entity: Option<PlatformGetError> = serde_json::from_str(&local_var_content).ok();
716        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
717        Err(Error::ResponseError(local_var_error))
718    }
719}
720
721/// Any current modifiers applied to all users, such as double drops.
722pub async fn platform_global_upgrades_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<serde_json::Value>, Error<PlatformGlobalUpgradesGetError>> {
723    let local_var_configuration = configuration;
724
725    let local_var_client = &local_var_configuration.client;
726
727    let local_var_uri_str = format!("{}/{platform}/globalUpgrades", local_var_configuration.base_path, platform=platform);
728    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
729
730    if let Some(ref local_var_str) = language {
731        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
732    }
733    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
734        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
735    }
736    if let Some(local_var_param_value) = accept_language {
737        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
738    }
739
740    let local_var_req = local_var_req_builder.build()?;
741    let local_var_resp = local_var_client.execute(local_var_req).await?;
742
743    let local_var_status = local_var_resp.status();
744    let local_var_content = local_var_resp.text().await?;
745
746    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
747        serde_json::from_str(&local_var_content).map_err(Error::from)
748    } else {
749        let local_var_entity: Option<PlatformGlobalUpgradesGetError> = serde_json::from_str(&local_var_content).ok();
750        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
751        Err(Error::ResponseError(local_var_error))
752    }
753}
754
755/// Data on invasion missions, such as estimated completion time, rewards, etc.
756pub async fn platform_invasions_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<crate::models::Invasion>, Error<PlatformInvasionsGetError>> {
757    let local_var_configuration = configuration;
758
759    let local_var_client = &local_var_configuration.client;
760
761    let local_var_uri_str = format!("{}/{platform}/invasions", local_var_configuration.base_path, platform=platform);
762    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
763
764    if let Some(ref local_var_str) = language {
765        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
766    }
767    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
768        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
769    }
770    if let Some(local_var_param_value) = accept_language {
771        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
772    }
773
774    let local_var_req = local_var_req_builder.build()?;
775    let local_var_resp = local_var_client.execute(local_var_req).await?;
776
777    let local_var_status = local_var_resp.status();
778    let local_var_content = local_var_resp.text().await?;
779
780    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
781        serde_json::from_str(&local_var_content).map_err(Error::from)
782    } else {
783        let local_var_entity: Option<PlatformInvasionsGetError> = serde_json::from_str(&local_var_content).ok();
784        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
785        Err(Error::ResponseError(local_var_error))
786    }
787}
788
789/// Current Kuva Mission listing (provided by [semlar](https://10o.io/kuvalog)).
790pub async fn platform_kuva_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<crate::models::Kuva>, Error<PlatformKuvaGetError>> {
791    let local_var_configuration = configuration;
792
793    let local_var_client = &local_var_configuration.client;
794
795    let local_var_uri_str = format!("{}/{platform}/kuva", local_var_configuration.base_path, platform=platform);
796    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
797
798    if let Some(ref local_var_str) = language {
799        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
800    }
801    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
802        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
803    }
804    if let Some(local_var_param_value) = accept_language {
805        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
806    }
807
808    let local_var_req = local_var_req_builder.build()?;
809    let local_var_resp = local_var_client.execute(local_var_req).await?;
810
811    let local_var_status = local_var_resp.status();
812    let local_var_content = local_var_resp.text().await?;
813
814    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
815        serde_json::from_str(&local_var_content).map_err(Error::from)
816    } else {
817        let local_var_entity: Option<PlatformKuvaGetError> = serde_json::from_str(&local_var_content).ok();
818        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
819        Err(Error::ResponseError(local_var_error))
820    }
821}
822
823/// Translated News items from the worldstate
824pub async fn platform_news_get(configuration: &configuration::Configuration, platform: crate::models::Platform) -> Result<Vec<serde_json::Value>, Error<PlatformNewsGetError>> {
825    let local_var_configuration = configuration;
826
827    let local_var_client = &local_var_configuration.client;
828
829    let local_var_uri_str = format!("{}/{platform}/news", local_var_configuration.base_path, platform=platform);
830    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
831
832    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
833        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
834    }
835
836    let local_var_req = local_var_req_builder.build()?;
837    let local_var_resp = local_var_client.execute(local_var_req).await?;
838
839    let local_var_status = local_var_resp.status();
840    let local_var_content = local_var_resp.text().await?;
841
842    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
843        serde_json::from_str(&local_var_content).map_err(Error::from)
844    } else {
845        let local_var_entity: Option<PlatformNewsGetError> = serde_json::from_str(&local_var_content).ok();
846        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
847        Err(Error::ResponseError(local_var_error))
848    }
849}
850
851/// The Current cycle and challenges of Nightwave, a battle-pass-esque rotation and challenge system
852pub async fn platform_nightwave_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::Nightwave, Error<PlatformNightwaveGetError>> {
853    let local_var_configuration = configuration;
854
855    let local_var_client = &local_var_configuration.client;
856
857    let local_var_uri_str = format!("{}/{platform}/nightwave", local_var_configuration.base_path, platform=platform);
858    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
859
860    if let Some(ref local_var_str) = language {
861        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
862    }
863    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
864        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
865    }
866    if let Some(local_var_param_value) = accept_language {
867        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
868    }
869
870    let local_var_req = local_var_req_builder.build()?;
871    let local_var_resp = local_var_client.execute(local_var_req).await?;
872
873    let local_var_status = local_var_resp.status();
874    let local_var_content = local_var_resp.text().await?;
875
876    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
877        serde_json::from_str(&local_var_content).map_err(Error::from)
878    } else {
879        let local_var_entity: Option<PlatformNightwaveGetError> = serde_json::from_str(&local_var_content).ok();
880        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
881        Err(Error::ResponseError(local_var_error))
882    }
883}
884
885/// Data about current acolytes attacking the Sol System
886pub async fn platform_persistent_enemies_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<serde_json::Value>, Error<PlatformPersistentEnemiesGetError>> {
887    let local_var_configuration = configuration;
888
889    let local_var_client = &local_var_configuration.client;
890
891    let local_var_uri_str = format!("{}/{platform}/persistentEnemies", local_var_configuration.base_path, platform=platform);
892    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
893
894    if let Some(ref local_var_str) = language {
895        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
896    }
897    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
898        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
899    }
900    if let Some(local_var_param_value) = accept_language {
901        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
902    }
903
904    let local_var_req = local_var_req_builder.build()?;
905    let local_var_resp = local_var_client.execute(local_var_req).await?;
906
907    let local_var_status = local_var_resp.status();
908    let local_var_content = local_var_resp.text().await?;
909
910    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
911        serde_json::from_str(&local_var_content).map_err(Error::from)
912    } else {
913        let local_var_entity: Option<PlatformPersistentEnemiesGetError> = serde_json::from_str(&local_var_content).ok();
914        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
915        Err(Error::ResponseError(local_var_error))
916    }
917}
918
919/// Data about averages, deviations, medians, miniums, and maxes for all rivens for the provided platform
920pub async fn platform_rivens_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<::std::collections::HashMap<String, crate::models::Riven>, Error<PlatformRivensGetError>> {
921    let local_var_configuration = configuration;
922
923    let local_var_client = &local_var_configuration.client;
924
925    let local_var_uri_str = format!("{}/{platform}/rivens", local_var_configuration.base_path, platform=platform);
926    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
927
928    if let Some(ref local_var_str) = language {
929        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
930    }
931    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
932        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
933    }
934    if let Some(local_var_param_value) = accept_language {
935        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
936    }
937
938    let local_var_req = local_var_req_builder.build()?;
939    let local_var_resp = local_var_client.execute(local_var_req).await?;
940
941    let local_var_status = local_var_resp.status();
942    let local_var_content = local_var_resp.text().await?;
943
944    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
945        serde_json::from_str(&local_var_content).map_err(Error::from)
946    } else {
947        let local_var_entity: Option<PlatformRivensGetError> = serde_json::from_str(&local_var_content).ok();
948        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
949        Err(Error::ResponseError(local_var_error))
950    }
951}
952
953/// Data about averages, deviations, medians, miniums, and maxes for rivens whose name match the query for the provided platform
954pub async fn platform_rivens_search_query_get(configuration: &configuration::Configuration, platform: crate::models::Platform, query: &str) -> Result<::std::collections::HashMap<String, crate::models::Riven>, Error<PlatformRivensSearchQueryGetError>> {
955    let local_var_configuration = configuration;
956
957    let local_var_client = &local_var_configuration.client;
958
959    let local_var_uri_str = format!("{}/{platform}/rivens/search/{query}", local_var_configuration.base_path, platform=platform, query=crate::apis::urlencode(query));
960    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
961
962    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
963        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
964    }
965
966    let local_var_req = local_var_req_builder.build()?;
967    let local_var_resp = local_var_client.execute(local_var_req).await?;
968
969    let local_var_status = local_var_resp.status();
970    let local_var_content = local_var_resp.text().await?;
971
972    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
973        serde_json::from_str(&local_var_content).map_err(Error::from)
974    } else {
975        let local_var_entity: Option<PlatformRivensSearchQueryGetError> = serde_json::from_str(&local_var_content).ok();
976        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
977        Err(Error::ResponseError(local_var_error))
978    }
979}
980
981/// Status data for current Sentient Outpost, if any. Parsed source is combined data from DE\\'s worldstate and [semlar\\'s data](https://semlar.com/anomaly.json)
982pub async fn platform_sentient_outposts_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::InlineResponse200, Error<PlatformSentientOutpostsGetError>> {
983    let local_var_configuration = configuration;
984
985    let local_var_client = &local_var_configuration.client;
986
987    let local_var_uri_str = format!("{}/{platform}/sentientOutposts", local_var_configuration.base_path, platform=platform);
988    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
989
990    if let Some(ref local_var_str) = language {
991        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
992    }
993    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
994        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
995    }
996    if let Some(local_var_param_value) = accept_language {
997        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
998    }
999
1000    let local_var_req = local_var_req_builder.build()?;
1001    let local_var_resp = local_var_client.execute(local_var_req).await?;
1002
1003    let local_var_status = local_var_resp.status();
1004    let local_var_content = local_var_resp.text().await?;
1005
1006    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
1007        serde_json::from_str(&local_var_content).map_err(Error::from)
1008    } else {
1009        let local_var_entity: Option<PlatformSentientOutpostsGetError> = serde_json::from_str(&local_var_content).ok();
1010        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
1011        Err(Error::ResponseError(local_var_error))
1012    }
1013}
1014
1015/// Status data for Simaris' Sanctuary
1016pub async fn platform_simaris_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::Simaris, Error<PlatformSimarisGetError>> {
1017    let local_var_configuration = configuration;
1018
1019    let local_var_client = &local_var_configuration.client;
1020
1021    let local_var_uri_str = format!("{}/{platform}/simaris", local_var_configuration.base_path, platform=platform);
1022    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
1023
1024    if let Some(ref local_var_str) = language {
1025        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
1026    }
1027    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
1028        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
1029    }
1030    if let Some(local_var_param_value) = accept_language {
1031        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
1032    }
1033
1034    let local_var_req = local_var_req_builder.build()?;
1035    let local_var_resp = local_var_client.execute(local_var_req).await?;
1036
1037    let local_var_status = local_var_resp.status();
1038    let local_var_content = local_var_resp.text().await?;
1039
1040    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
1041        serde_json::from_str(&local_var_content).map_err(Error::from)
1042    } else {
1043        let local_var_entity: Option<PlatformSimarisGetError> = serde_json::from_str(&local_var_content).ok();
1044        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
1045        Err(Error::ResponseError(local_var_error))
1046    }
1047}
1048
1049/// Data about the missions for the current sortie
1050pub async fn platform_sortie_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<crate::models::Sortie>, Error<PlatformSortieGetError>> {
1051    let local_var_configuration = configuration;
1052
1053    let local_var_client = &local_var_configuration.client;
1054
1055    let local_var_uri_str = format!("{}/{platform}/sortie", local_var_configuration.base_path, platform=platform);
1056    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
1057
1058    if let Some(ref local_var_str) = language {
1059        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
1060    }
1061    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
1062        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
1063    }
1064    if let Some(local_var_param_value) = accept_language {
1065        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
1066    }
1067
1068    let local_var_req = local_var_req_builder.build()?;
1069    let local_var_resp = local_var_client.execute(local_var_req).await?;
1070
1071    let local_var_status = local_var_resp.status();
1072    let local_var_content = local_var_resp.text().await?;
1073
1074    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
1075        serde_json::from_str(&local_var_content).map_err(Error::from)
1076    } else {
1077        let local_var_entity: Option<PlatformSortieGetError> = serde_json::from_str(&local_var_content).ok();
1078        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
1079        Err(Error::ResponseError(local_var_error))
1080    }
1081}
1082
1083/// Data about the missions for the current sortie
1084pub async fn platform_steel_path_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<crate::models::SteelPath>, Error<PlatformSteelPathGetError>> {
1085    let local_var_configuration = configuration;
1086
1087    let local_var_client = &local_var_configuration.client;
1088
1089    let local_var_uri_str = format!("{}/{platform}/steelPath", local_var_configuration.base_path, platform=platform);
1090    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
1091
1092    if let Some(ref local_var_str) = language {
1093        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
1094    }
1095    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
1096        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
1097    }
1098    if let Some(local_var_param_value) = accept_language {
1099        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
1100    }
1101
1102    let local_var_req = local_var_req_builder.build()?;
1103    let local_var_resp = local_var_client.execute(local_var_req).await?;
1104
1105    let local_var_status = local_var_resp.status();
1106    let local_var_content = local_var_resp.text().await?;
1107
1108    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
1109        serde_json::from_str(&local_var_content).map_err(Error::from)
1110    } else {
1111        let local_var_entity: Option<PlatformSteelPathGetError> = serde_json::from_str(&local_var_content).ok();
1112        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
1113        Err(Error::ResponseError(local_var_error))
1114    }
1115}
1116
1117/// Cycling through different nodes each day, these are a general listing of the nodes that each syndicate will use for the day.
1118pub async fn platform_syndicate_missions_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<Vec<crate::models::SyndicateMission>, Error<PlatformSyndicateMissionsGetError>> {
1119    let local_var_configuration = configuration;
1120
1121    let local_var_client = &local_var_configuration.client;
1122
1123    let local_var_uri_str = format!("{}/{platform}/syndicateMissions", local_var_configuration.base_path, platform=platform);
1124    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
1125
1126    if let Some(ref local_var_str) = language {
1127        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
1128    }
1129    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
1130        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
1131    }
1132    if let Some(local_var_param_value) = accept_language {
1133        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
1134    }
1135
1136    let local_var_req = local_var_req_builder.build()?;
1137    let local_var_resp = local_var_client.execute(local_var_req).await?;
1138
1139    let local_var_status = local_var_resp.status();
1140    let local_var_content = local_var_resp.text().await?;
1141
1142    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
1143        serde_json::from_str(&local_var_content).map_err(Error::from)
1144    } else {
1145        let local_var_entity: Option<PlatformSyndicateMissionsGetError> = serde_json::from_str(&local_var_content).ok();
1146        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
1147        Err(Error::ResponseError(local_var_error))
1148    }
1149}
1150
1151/// The time that the worldstate was last generated
1152pub async fn platform_timestamp_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<String, Error<PlatformTimestampGetError>> {
1153    let local_var_configuration = configuration;
1154
1155    let local_var_client = &local_var_configuration.client;
1156
1157    let local_var_uri_str = format!("{}/{platform}/timestamp", local_var_configuration.base_path, platform=platform);
1158    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
1159
1160    if let Some(ref local_var_str) = language {
1161        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
1162    }
1163    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
1164        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
1165    }
1166    if let Some(local_var_param_value) = accept_language {
1167        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
1168    }
1169
1170    let local_var_req = local_var_req_builder.build()?;
1171    let local_var_resp = local_var_client.execute(local_var_req).await?;
1172
1173    let local_var_status = local_var_resp.status();
1174    let local_var_content = local_var_resp.text().await?;
1175
1176    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
1177        serde_json::from_str(&local_var_content).map_err(Error::from)
1178    } else {
1179        let local_var_entity: Option<PlatformTimestampGetError> = serde_json::from_str(&local_var_content).ok();
1180        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
1181        Err(Error::ResponseError(local_var_error))
1182    }
1183}
1184
1185/// The current cycle of the Orb Vallis warm/cold cycle
1186pub async fn platform_vallis_cycle_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::VallisCycle, Error<PlatformVallisCycleGetError>> {
1187    let local_var_configuration = configuration;
1188
1189    let local_var_client = &local_var_configuration.client;
1190
1191    let local_var_uri_str = format!("{}/{platform}/vallisCycle", local_var_configuration.base_path, platform=platform);
1192    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
1193
1194    if let Some(ref local_var_str) = language {
1195        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
1196    }
1197    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
1198        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
1199    }
1200    if let Some(local_var_param_value) = accept_language {
1201        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
1202    }
1203
1204    let local_var_req = local_var_req_builder.build()?;
1205    let local_var_resp = local_var_client.execute(local_var_req).await?;
1206
1207    let local_var_status = local_var_resp.status();
1208    let local_var_content = local_var_resp.text().await?;
1209
1210    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
1211        serde_json::from_str(&local_var_content).map_err(Error::from)
1212    } else {
1213        let local_var_entity: Option<PlatformVallisCycleGetError> = serde_json::from_str(&local_var_content).ok();
1214        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
1215        Err(Error::ResponseError(local_var_error))
1216    }
1217}
1218
1219/// Information on the current Void Trader offerings, or when he will arrive.
1220pub async fn platform_void_trader_get(configuration: &configuration::Configuration, platform: crate::models::Platform, accept_language: Option<crate::models::Language>, language: Option<crate::models::Language>) -> Result<crate::models::VoidTrader, Error<PlatformVoidTraderGetError>> {
1221    let local_var_configuration = configuration;
1222
1223    let local_var_client = &local_var_configuration.client;
1224
1225    let local_var_uri_str = format!("{}/{platform}/voidTrader", local_var_configuration.base_path, platform=platform);
1226    let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
1227
1228    if let Some(ref local_var_str) = language {
1229        local_var_req_builder = local_var_req_builder.query(&[("language", &local_var_str.to_string())]);
1230    }
1231    if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
1232        local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
1233    }
1234    if let Some(local_var_param_value) = accept_language {
1235        local_var_req_builder = local_var_req_builder.header("Accept-Language", local_var_param_value.to_string());
1236    }
1237
1238    let local_var_req = local_var_req_builder.build()?;
1239    let local_var_resp = local_var_client.execute(local_var_req).await?;
1240
1241    let local_var_status = local_var_resp.status();
1242    let local_var_content = local_var_resp.text().await?;
1243
1244    if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
1245        serde_json::from_str(&local_var_content).map_err(Error::from)
1246    } else {
1247        let local_var_entity: Option<PlatformVoidTraderGetError> = serde_json::from_str(&local_var_content).ok();
1248        let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
1249        Err(Error::ResponseError(local_var_error))
1250    }
1251}
1252