com.lukaspradel.steamapi.data.json.ownedgames.Game 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.ownedgames;
import java.util.HashMap;
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({
"appid",
"has_community_visible_stats",
"img_icon_url",
"img_logo_url",
"name",
"playtime_forever"
})
public class Game {
/**
*
*/
@JsonProperty("appid")
private Integer appid;
/**
*
*/
@JsonProperty("has_community_visible_stats")
private Boolean hasCommunityVisibleStats;
/**
*
*/
@JsonProperty("img_icon_url")
private String imgIconUrl;
/**
*
*/
@JsonProperty("img_logo_url")
private String imgLogoUrl;
/**
*
*/
@JsonProperty("name")
private String name;
/**
*
*/
@JsonProperty("playtime_forever")
private Integer playtimeForever;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
*
* @return
* The appid
*/
@JsonProperty("appid")
public Integer getAppid() {
return appid;
}
/**
*
* @param appid
* The appid
*/
@JsonProperty("appid")
public void setAppid(Integer appid) {
this.appid = appid;
}
public Game withAppid(Integer appid) {
this.appid = appid;
return this;
}
/**
*
* @return
* The hasCommunityVisibleStats
*/
@JsonProperty("has_community_visible_stats")
public Boolean getHasCommunityVisibleStats() {
return hasCommunityVisibleStats;
}
/**
*
* @param hasCommunityVisibleStats
* The has_community_visible_stats
*/
@JsonProperty("has_community_visible_stats")
public void setHasCommunityVisibleStats(Boolean hasCommunityVisibleStats) {
this.hasCommunityVisibleStats = hasCommunityVisibleStats;
}
public Game withHasCommunityVisibleStats(Boolean hasCommunityVisibleStats) {
this.hasCommunityVisibleStats = hasCommunityVisibleStats;
return this;
}
/**
*
* @return
* The imgIconUrl
*/
@JsonProperty("img_icon_url")
public String getImgIconUrl() {
return imgIconUrl;
}
/**
*
* @param imgIconUrl
* The img_icon_url
*/
@JsonProperty("img_icon_url")
public void setImgIconUrl(String imgIconUrl) {
this.imgIconUrl = imgIconUrl;
}
public Game withImgIconUrl(String imgIconUrl) {
this.imgIconUrl = imgIconUrl;
return this;
}
/**
*
* @return
* The imgLogoUrl
*/
@JsonProperty("img_logo_url")
public String getImgLogoUrl() {
return imgLogoUrl;
}
/**
*
* @param imgLogoUrl
* The img_logo_url
*/
@JsonProperty("img_logo_url")
public void setImgLogoUrl(String imgLogoUrl) {
this.imgLogoUrl = imgLogoUrl;
}
public Game withImgLogoUrl(String imgLogoUrl) {
this.imgLogoUrl = imgLogoUrl;
return this;
}
/**
*
* @return
* The name
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
*
* @param name
* The name
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
public Game withName(String name) {
this.name = name;
return this;
}
/**
*
* @return
* The playtimeForever
*/
@JsonProperty("playtime_forever")
public Integer getPlaytimeForever() {
return playtimeForever;
}
/**
*
* @param playtimeForever
* The playtime_forever
*/
@JsonProperty("playtime_forever")
public void setPlaytimeForever(Integer playtimeForever) {
this.playtimeForever = playtimeForever;
}
public Game withPlaytimeForever(Integer playtimeForever) {
this.playtimeForever = playtimeForever;
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 Game withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(appid).append(hasCommunityVisibleStats).append(imgIconUrl).append(imgLogoUrl).append(name).append(playtimeForever).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Game) == false) {
return false;
}
Game rhs = ((Game) other);
return new EqualsBuilder().append(appid, rhs.appid).append(hasCommunityVisibleStats, rhs.hasCommunityVisibleStats).append(imgIconUrl, rhs.imgIconUrl).append(imgLogoUrl, rhs.imgLogoUrl).append(name, rhs.name).append(playtimeForever, rhs.playtimeForever).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy