com.ibasco.agql.protocols.valve.steam.webapi.pojos.SteamEconPlayerItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agql-steam-webapi Show documentation
Show all versions of agql-steam-webapi Show documentation
An implementation for the Steam Web API Interfaces
/*
* MIT License
*
* Copyright (c) 2016 Asynchronous Game Query Library
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.ibasco.agql.protocols.valve.steam.webapi.pojos;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.List;
public class SteamEconPlayerItem {
private int id;
@SerializedName("original_id")
private int originalId;
@SerializedName("defindex")
private int defIndex;
private int level;
private int quality;
private int inventory;
private int quantity;
private int rarity;
@SerializedName("flag_cannot_trade")
private boolean cannotTrade;
@SerializedName("attributes")
private List itemAttributes;
private List equipInfos;
@SerializedName("flag_cannot_craft")
private boolean cannotCraft; //tf2 specific
@SerializedName("custom_name")
private String customName;
@SerializedName("custom_desc")
private String customDescription;
private int style;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getOriginalId() {
return originalId;
}
public void setOriginalId(int originalId) {
this.originalId = originalId;
}
public int getDefIndex() {
return defIndex;
}
public void setDefIndex(int defIndex) {
this.defIndex = defIndex;
}
public int getLevel() {
return level;
}
public void setLevel(int level) {
this.level = level;
}
public int getQuality() {
return quality;
}
public void setQuality(int quality) {
this.quality = quality;
}
public int getInventory() {
return inventory;
}
public void setInventory(int inventory) {
this.inventory = inventory;
}
public int getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
public int getRarity() {
return rarity;
}
public void setRarity(int rarity) {
this.rarity = rarity;
}
public boolean isCannotTrade() {
return cannotTrade;
}
public void setCannotTrade(boolean cannotTrade) {
this.cannotTrade = cannotTrade;
}
public List getItemAttributes() {
return itemAttributes;
}
public void setItemAttributes(List itemAttributes) {
this.itemAttributes = itemAttributes;
}
public List getEquipInfos() {
return equipInfos;
}
public void setEquipInfos(List equipInfos) {
this.equipInfos = equipInfos;
}
public boolean isCannotCraft() {
return cannotCraft;
}
public void setCannotCraft(boolean cannotCraft) {
this.cannotCraft = cannotCraft;
}
public String getCustomName() {
return customName;
}
public void setCustomName(String customName) {
this.customName = customName;
}
public String getCustomDescription() {
return customDescription;
}
public void setCustomDescription(String customDescription) {
this.customDescription = customDescription;
}
public int getStyle() {
return style;
}
public void setStyle(int style) {
this.style = style;
}
@Override
public String toString() {
return ReflectionToStringBuilder.toString(this, ToStringStyle.NO_CLASS_NAME_STYLE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy