Skip to main content

esi_openapi/groups/
user_interface.rs

1use crate::prelude::*;
2
3/// Endpoints for UserInterface
4pub struct UserInterfaceGroup<'a> {
5    pub(crate) esi: &'a Esi,
6}
7
8impl UserInterfaceGroup<'_> {
9    /// Open the market details window.
10    pub async fn open_market_details_window(&self, type_id: i32) -> EsiResult<()> {
11        // not using the macro since it doesn't like no body;
12        // `type_id` is a query parameter, not part of the path
13        let path = self
14            .esi
15            .get_endpoint_for_op_id("PostUiOpenwindowMarketdetails")?;
16        let type_id = type_id.to_string();
17        self.esi
18            .query(
19                "POST",
20                RequestType::Authenticated,
21                &path,
22                Some(&[("type_id", type_id.as_str())]),
23                None,
24            )
25            .await
26    }
27}