use crate::prelude::*;
/// Endpoints for UserInterface
pub struct UserInterfaceGroup<'a> {
pub(crate) esi: &'a Esi,
}
impl UserInterfaceGroup<'_> {
/// Open the market details window.
pub async fn open_market_details_window(&self, type_id: i32) -> EsiResult<()> {
// not using the macro since it doesn't like no body;
// `type_id` is a query parameter, not part of the path
let path = self
.esi
.get_endpoint_for_op_id("PostUiOpenwindowMarketdetails")?;
let type_id = type_id.to_string();
self.esi
.query(
"POST",
RequestType::Authenticated,
&path,
Some(&[("type_id", type_id.as_str())]),
None,
)
.await
}
}