nil_client/client/cheat/city.rs
1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4use crate::client::Client;
5use crate::error::Result;
6use crate::http;
7use nil_payload::cheat::city::*;
8
9impl Client {
10 pub async fn cheat_set_stability(&self, req: CheatSetStabilityRequest) -> Result<()> {
11 http::post("cheat-set-stability")
12 .body(req)
13 .server(self.server)
14 .maybe_authorization(self.authorization.as_ref())
15 .user_agent(&self.user_agent)
16 .send()
17 .await
18 }
19}