com.ibasco.agql.protocols.valve.steam.webapi.pojos.SteamAssetPriceInfo Maven / Gradle / Ivy
/*
* Copyright (c) 2022 Asynchronous Game Query Library
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ibasco.agql.protocols.valve.steam.webapi.pojos;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* SteamAssetPriceInfo class.
*
* @author Rafael Luis Ibasco
*/
public class SteamAssetPriceInfo {
@SerializedName("prices")
private Map prices;
@SerializedName("name")
private String name;
@SerializedName("date")
private String date;
@SerializedName("class")
private List> classList = new ArrayList<>();
@SerializedName("classid")
private String classId;
/**
* Getter for the field classList
.
*
* @return a {@link java.util.List} object
*/
public List> getClassList() {
return classList;
}
/**
* Setter for the field classList
.
*
* @param classList
* a {@link java.util.List} object
*/
public void setClassList(List> classList) {
this.classList = classList;
}
/** {@inheritDoc} */
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.NO_CLASS_NAME_STYLE)
.append("ClassId", getClassId())
.append("Name", getName())
.append("Date", getDate())
.append("PriceCount", getPrices().size()).toString();
}
/**
* Getter for the field classId
.
*
* @return a {@link java.lang.String} object
*/
public String getClassId() {
return classId;
}
//TODO: Return a LocalDateTime instance instead of Date string
/**
* Getter for the field name
.
*
* @return a {@link java.lang.String} object
*/
public String getName() {
return name;
}
/**
* Setter for the field name
.
*
* @param name
* a {@link java.lang.String} object
*/
public void setName(String name) {
this.name = name;
}
/**
* Getter for the field date
.
*
* @return a {@link java.lang.String} object
*/
public String getDate() {
return date;
}
/**
* Getter for the field prices
.
*
* @return a {@link java.util.Map} object
*/
public Map getPrices() {
return prices;
}
/**
* Setter for the field prices
.
*
* @param prices
* a {@link java.util.Map} object
*/
public void setPrices(Map prices) {
this.prices = prices;
}
/**
* Setter for the field date
.
*
* @param date
* a {@link java.lang.String} object
*/
public void setDate(String date) {
this.date = date;
}
/**
* Setter for the field classId
.
*
* @param classId
* a {@link java.lang.String} object
*/
public void setClassId(String classId) {
this.classId = classId;
}
}