All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lukaspradel.steamapi.data.json.recentlyplayedgames.Game Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version

package com.lukaspradel.steamapi.data.json.recentlyplayedgames;

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",
    "img_icon_url",
    "img_logo_url",
    "name",
    "playtime_2weeks",
    "playtime_forever"
})
public class Game {

    /**
     * 
     */
    @JsonProperty("appid")
    private Integer appid;
    /**
     * 
     */
    @JsonProperty("img_icon_url")
    private String imgIconUrl;
    /**
     * 
     */
    @JsonProperty("img_logo_url")
    private String imgLogoUrl;
    /**
     * 
     */
    @JsonProperty("name")
    private String name;
    /**
     * 
     */
    @JsonProperty("playtime_2weeks")
    private Integer playtime2weeks;
    /**
     * 
     */
    @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 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 playtime2weeks
     */
    @JsonProperty("playtime_2weeks")
    public Integer getPlaytime2weeks() {
        return playtime2weeks;
    }

    /**
     * 
     * @param playtime2weeks
     *     The playtime_2weeks
     */
    @JsonProperty("playtime_2weeks")
    public void setPlaytime2weeks(Integer playtime2weeks) {
        this.playtime2weeks = playtime2weeks;
    }

    public Game withPlaytime2weeks(Integer playtime2weeks) {
        this.playtime2weeks = playtime2weeks;
        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(imgIconUrl).append(imgLogoUrl).append(name).append(playtime2weeks).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(imgIconUrl, rhs.imgIconUrl).append(imgLogoUrl, rhs.imgLogoUrl).append(name, rhs.name).append(playtime2weeks, rhs.playtime2weeks).append(playtimeForever, rhs.playtimeForever).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy