#![allow(dead_code, non_camel_case_types, non_snake_case, unused_imports, unused_mut)]
use crate::{AMPAPI, types::*};
use std::collections::HashMap;
use serde_json::{Value, Map};
#[derive(Debug, Clone)]
pub struct MinecraftModule {
pub ampapi: AMPAPI
}
impl MinecraftModule {
pub fn new(ampapi: AMPAPI) -> MinecraftModule {
MinecraftModule {
ampapi
}
}
pub fn AcceptEULA(&mut self, ) -> core::result::Result<bool, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<bool>("MinecraftModule/AcceptEULA".to_string(), args)
}
pub fn AddOPEntry(&mut self, UserOrUUID: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("UserOrUUID".to_string(), UserOrUUID.into());
self.ampapi.api_call::<ActionResult<Value>>("MinecraftModule/AddOPEntry".to_string(), args)
}
pub fn AddToWhitelist(&mut self, UserOrUUID: String) -> core::result::Result<ActionResult<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("UserOrUUID".to_string(), UserOrUUID.into());
self.ampapi.api_call::<ActionResult<Value>>("MinecraftModule/AddToWhitelist".to_string(), args)
}
pub fn BanUserByID(&mut self, ID: String) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("ID".to_string(), ID.into());
self.ampapi.api_call::<Value>("MinecraftModule/BanUserByID".to_string(), args)
}
pub fn BukGetCategories(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("MinecraftModule/BukGetCategories".to_string(), args)
}
pub fn BukGetInstallUpdatePlugin(&mut self, pluginId: i32) -> core::result::Result<RunningTask, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("pluginId".to_string(), pluginId.into());
self.ampapi.api_call::<RunningTask>("MinecraftModule/BukGetInstallUpdatePlugin".to_string(), args)
}
pub fn BukGetInstalledPlugins(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("MinecraftModule/BukGetInstalledPlugins".to_string(), args)
}
pub fn BukGetPluginInfo(&mut self, PluginId: i32) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("PluginId".to_string(), PluginId.into());
self.ampapi.api_call::<Value>("MinecraftModule/BukGetPluginInfo".to_string(), args)
}
pub fn BukGetPluginsForCategory(&mut self, CategoryId: String, PageNumber: i32, PageSize: i32) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("CategoryId".to_string(), CategoryId.into());
args.insert("PageNumber".to_string(), PageNumber.into());
args.insert("PageSize".to_string(), PageSize.into());
self.ampapi.api_call::<Value>("MinecraftModule/BukGetPluginsForCategory".to_string(), args)
}
pub fn BukGetPopularPlugins(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("MinecraftModule/BukGetPopularPlugins".to_string(), args)
}
pub fn BukGetRemovePlugin(&mut self, PluginId: i32) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("PluginId".to_string(), PluginId.into());
self.ampapi.api_call::<Value>("MinecraftModule/BukGetRemovePlugin".to_string(), args)
}
pub fn BukGetSearch(&mut self, Query: String, PageNumber: i32, PageSize: i32) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("Query".to_string(), Query.into());
args.insert("PageNumber".to_string(), PageNumber.into());
args.insert("PageSize".to_string(), PageSize.into());
self.ampapi.api_call::<Value>("MinecraftModule/BukGetSearch".to_string(), args)
}
pub fn ClearInventoryByID(&mut self, ID: String) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("ID".to_string(), ID.into());
self.ampapi.api_call::<Value>("MinecraftModule/ClearInventoryByID".to_string(), args)
}
pub fn GetFailureReason(&mut self, ) -> core::result::Result<String, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<String>("MinecraftModule/GetFailureReason".to_string(), args)
}
pub fn GetHeadByUUID(&mut self, id: String) -> core::result::Result<String, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("id".to_string(), id.into());
self.ampapi.api_call::<String>("MinecraftModule/GetHeadByUUID".to_string(), args)
}
pub fn GetOPWhitelist(&mut self, ) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Value>("MinecraftModule/GetOPWhitelist".to_string(), args)
}
pub fn GetWhitelist(&mut self, ) -> core::result::Result<Vec<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Vec<Value>>("MinecraftModule/GetWhitelist".to_string(), args)
}
pub fn KickUserByID(&mut self, ID: String) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("ID".to_string(), ID.into());
self.ampapi.api_call::<Value>("MinecraftModule/KickUserByID".to_string(), args)
}
pub fn KillByID(&mut self, ID: String) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("ID".to_string(), ID.into());
self.ampapi.api_call::<Value>("MinecraftModule/KillByID".to_string(), args)
}
pub fn LoadOPList(&mut self, ) -> core::result::Result<Vec<Value>, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
self.ampapi.api_call::<Vec<Value>>("MinecraftModule/LoadOPList".to_string(), args)
}
pub fn RemoveOPEntry(&mut self, UserOrUUID: String) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("UserOrUUID".to_string(), UserOrUUID.into());
self.ampapi.api_call::<Value>("MinecraftModule/RemoveOPEntry".to_string(), args)
}
pub fn RemoveWhitelistEntry(&mut self, UserOrUUID: String) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("UserOrUUID".to_string(), UserOrUUID.into());
self.ampapi.api_call::<Value>("MinecraftModule/RemoveWhitelistEntry".to_string(), args)
}
pub fn SmiteByID(&mut self, ID: String) -> core::result::Result<Value, reqwest::Error> {
let mut args: HashMap<String, Value> = HashMap::new();
args.insert("ID".to_string(), ID.into());
self.ampapi.api_call::<Value>("MinecraftModule/SmiteByID".to_string(), args)
}
}