com.lukaspradel.steamapi.data.json.playerstats.Playerstats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of steam-web-api Show documentation
Show all versions of steam-web-api Show documentation
A library to provide access to the data available from Valve's Steam API
package com.lukaspradel.steamapi.data.json.playerstats;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"achievements",
"gameName",
"stats",
"steamID"
})
public class Playerstats {
/**
*
*/
@JsonProperty("achievements")
private List achievements = new ArrayList();
/**
*
*/
@JsonProperty("gameName")
private String gameName;
/**
*
*/
@JsonProperty("stats")
private List stats = new ArrayList();
/**
*
*/
@JsonProperty("steamID")
private String steamID;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
*
* @return
* The achievements
*/
@JsonProperty("achievements")
public List getAchievements() {
return achievements;
}
/**
*
* @param achievements
* The achievements
*/
@JsonProperty("achievements")
public void setAchievements(List achievements) {
this.achievements = achievements;
}
public Playerstats withAchievements(List achievements) {
this.achievements = achievements;
return this;
}
/**
*
* @return
* The gameName
*/
@JsonProperty("gameName")
public String getGameName() {
return gameName;
}
/**
*
* @param gameName
* The gameName
*/
@JsonProperty("gameName")
public void setGameName(String gameName) {
this.gameName = gameName;
}
public Playerstats withGameName(String gameName) {
this.gameName = gameName;
return this;
}
/**
*
* @return
* The stats
*/
@JsonProperty("stats")
public List getStats() {
return stats;
}
/**
*
* @param stats
* The stats
*/
@JsonProperty("stats")
public void setStats(List stats) {
this.stats = stats;
}
public Playerstats withStats(List stats) {
this.stats = stats;
return this;
}
/**
*
* @return
* The steamID
*/
@JsonProperty("steamID")
public String getSteamID() {
return steamID;
}
/**
*
* @param steamID
* The steamID
*/
@JsonProperty("steamID")
public void setSteamID(String steamID) {
this.steamID = steamID;
}
public Playerstats withSteamID(String steamID) {
this.steamID = steamID;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public Playerstats withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(achievements).append(gameName).append(stats).append(steamID).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Playerstats) == false) {
return false;
}
Playerstats rhs = ((Playerstats) other);
return new EqualsBuilder().append(achievements, rhs.achievements).append(gameName, rhs.gameName).append(stats, rhs.stats).append(steamID, rhs.steamID).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy