use super::super::{RemoteSteamUser, RemoteSteamUserError};
use crate::types::Confirmation;
impl RemoteSteamUser {
pub async fn get_confirmations(&self, identity_secret: &str, tag: Option<&str>) -> Result<Vec<Confirmation>, RemoteSteamUserError> {
self.call_typed("/api/confirmations/list", serde_json::json!({"identity_secret": identity_secret, "tag": tag})).await
}
pub async fn accept_confirmation_for_object(&self, identity_secret: &str, object_id: u64) -> Result<(), RemoteSteamUserError> {
self.call_void("/api/confirmations/accept", serde_json::json!({"identity_secret": identity_secret, "object_id": object_id})).await
}
pub async fn deny_confirmation_for_object(&self, identity_secret: &str, object_id: u64) -> Result<(), RemoteSteamUserError> {
self.call_void("/api/confirmations/deny", serde_json::json!({"identity_secret": identity_secret, "object_id": object_id})).await
}
}