use super::super::{GasError, GasSteamUser};
use crate::types::{SteamGuardStatus, TwoFactorResponse};
impl GasSteamUser {
pub async fn get_steam_guard_status(&self) -> Result<SteamGuardStatus, GasError> {
self.call("get_steam_guard_status", &[]).await
}
pub async fn enable_two_factor(&self) -> Result<TwoFactorResponse, GasError> {
self.call("enable_two_factor", &[]).await
}
pub async fn finalize_two_factor(&self, shared_secret: &str, activation_code: &str) -> Result<(), GasError> {
self.call_void("finalize_two_factor", &[("sharedSecret", shared_secret), ("activationCode", activation_code)]).await
}
pub async fn disable_two_factor(&self, revocation_code: &str) -> Result<(), GasError> {
self.call_void("disable_two_factor", &[("revocationCode", revocation_code)]).await
}
pub async fn deauthorize_devices(&self) -> Result<(), GasError> {
self.call_void("deauthorize_devices", &[]).await
}
pub async fn add_authenticator(&self) -> Result<TwoFactorResponse, GasError> {
self.call("add_authenticator", &[]).await
}
pub async fn finalize_authenticator(&self, activation_code: &str) -> Result<(), GasError> {
self.call_void("finalize_authenticator", &[("activationCode", activation_code)]).await
}
pub async fn remove_authenticator(&self, revocation_code: &str) -> Result<(), GasError> {
self.call_void("remove_authenticator", &[("revocationCode", revocation_code)]).await
}
pub async fn enable_steam_guard_email(&self) -> Result<bool, GasError> {
self.call("enable_steam_guard_email", &[]).await
}
pub async fn disable_steam_guard_email(&self) -> Result<bool, GasError> {
self.call("disable_steam_guard_email", &[]).await
}
}