Expose more API data

This commit is contained in:
Sakuhl 2020-03-14 15:47:44 +01:00
parent 9fb537e40d
commit 9a7d544a12

View File

@ -133,7 +133,7 @@ pub struct Player {
pub meta: PlayerMetadata,
pub classes: Vec<Class>,
pub guild: PlayerGuildInfo,
pub global: Value,
pub global: GlobalPlayerInfo,
pub ranking: Value
}
@ -142,23 +142,36 @@ pub struct Player {
pub struct PlayerMetadata {
pub firstJoin: String,
pub lastJoin: String,
pub location: Value,
pub location: Location,
pub playtime: u64,
pub tag: Value,
pub veteran: bool
}
#[derive(Debug, Deserialize)]
pub struct Location {
pub online: bool,
pub server: Option<String>
}
#[derive(Debug, Deserialize)]
pub struct GlobalPlayerInfo {
pub items_identified: u64,
pub mobs_killed: u64,
pub pvp_kills: u64,
pub pvp_deaths: u64,
pub chests_found: u64,
pub blocks_walked: u64,
pub chestsFound: u64,
pub blocksWalked: u64,
pub itemsIdentified: u64,
pub mobsKilled: u64,
pub totalLevel: Value,
pub pvp: Pvp,
pub logins: u64,
pub deaths: u64,
pub total_level: u64
pub discoveries: u64,
pub eventsWon: u64
}
#[derive(Debug, Deserialize)]
pub struct Pvp {
pub kills: u64,
pub deaths: u64
}
#[derive(Debug, Deserialize)]