com.ibasco.agql.protocols.valve.steam.webapi.pojos.SteamEconSchemaItem Maven / Gradle / Ivy
Show all versions of agql-steam-webapi Show documentation
/*
* 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.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* SteamEconSchemaItem class.
*
* @author Rafael Luis Ibasco
*/
public class SteamEconSchemaItem {
private String name;
@SerializedName("defindex")
private int defIndex;
@SerializedName("item_class")
private String itemClass;
@SerializedName("item_type_name")
private String itemTypeName;
@SerializedName("item_name")
private String itemName;
@SerializedName("item_description")
private String itemDescription;
@SerializedName("proper_name")
private boolean properName;
@SerializedName("item_slot")
private String itemSlot; //TODO: use enum instead?
@SerializedName("model_player")
private String modelPlayer;
@SerializedName("item_quality")
private int itemQuality;
@SerializedName("image_inventory")
private String imageInventory;
@SerializedName("min_ilevel")
private int minItemLevel;
@SerializedName("max_ilevel")
private int maxItemLevel;
@SerializedName("image_url")
private String imageUrl;
@SerializedName("image_url_large")
private String imageUrlLarge;
@SerializedName("drop_type ")
private String dropType;
@SerializedName("item_set")
private String itemSet;
@SerializedName("holiday_restriction")
private String holidayRestriction;
@SerializedName("craft_class")
private String craftClass;
@SerializedName("craft_material_type")
private String craftMaterialType;
private SteamEconSchemaCapabilities capabilities;
@SerializedName("used_by_classes")
private List usedByClasses = new ArrayList<>();
private List attributes = new ArrayList<>();
/**
* An object that describes class specific loadout slots for the item if applicable.
*/
@SerializedName("per_class_loadout_slots")
private Map perClassLoadoutSlots;
/**
* 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 defIndex
.
*
* @return a int
*/
public int getDefIndex() {
return defIndex;
}
/**
* Setter for the field defIndex
.
*
* @param defIndex
* a int
*/
public void setDefIndex(int defIndex) {
this.defIndex = defIndex;
}
/**
* Getter for the field itemClass
.
*
* @return a {@link java.lang.String} object
*/
public String getItemClass() {
return itemClass;
}
/**
* Setter for the field itemClass
.
*
* @param itemClass
* a {@link java.lang.String} object
*/
public void setItemClass(String itemClass) {
this.itemClass = itemClass;
}
/**
* Getter for the field itemTypeName
.
*
* @return a {@link java.lang.String} object
*/
public String getItemTypeName() {
return itemTypeName;
}
/**
* Setter for the field itemTypeName
.
*
* @param itemTypeName
* a {@link java.lang.String} object
*/
public void setItemTypeName(String itemTypeName) {
this.itemTypeName = itemTypeName;
}
/**
* Getter for the field itemName
.
*
* @return a {@link java.lang.String} object
*/
public String getItemName() {
return itemName;
}
/**
* Setter for the field itemName
.
*
* @param itemName
* a {@link java.lang.String} object
*/
public void setItemName(String itemName) {
this.itemName = itemName;
}
/**
* Getter for the field itemDescription
.
*
* @return a {@link java.lang.String} object
*/
public String getItemDescription() {
return itemDescription;
}
/**
* Setter for the field itemDescription
.
*
* @param itemDescription
* a {@link java.lang.String} object
*/
public void setItemDescription(String itemDescription) {
this.itemDescription = itemDescription;
}
/**
* isProperName.
*
* @return a boolean
*/
public boolean isProperName() {
return properName;
}
/**
* Setter for the field properName
.
*
* @param properName
* a boolean
*/
public void setProperName(boolean properName) {
this.properName = properName;
}
/**
* Getter for the field itemSlot
.
*
* @return a {@link java.lang.String} object
*/
public String getItemSlot() {
return itemSlot;
}
/**
* Setter for the field itemSlot
.
*
* @param itemSlot
* a {@link java.lang.String} object
*/
public void setItemSlot(String itemSlot) {
this.itemSlot = itemSlot;
}
/**
* Getter for the field modelPlayer
.
*
* @return a {@link java.lang.String} object
*/
public String getModelPlayer() {
return modelPlayer;
}
/**
* Setter for the field modelPlayer
.
*
* @param modelPlayer
* a {@link java.lang.String} object
*/
public void setModelPlayer(String modelPlayer) {
this.modelPlayer = modelPlayer;
}
/**
* Getter for the field itemQuality
.
*
* @return a int
*/
public int getItemQuality() {
return itemQuality;
}
/**
* Setter for the field itemQuality
.
*
* @param itemQuality
* a int
*/
public void setItemQuality(int itemQuality) {
this.itemQuality = itemQuality;
}
/**
* Getter for the field imageInventory
.
*
* @return a {@link java.lang.String} object
*/
public String getImageInventory() {
return imageInventory;
}
/**
* Setter for the field imageInventory
.
*
* @param imageInventory
* a {@link java.lang.String} object
*/
public void setImageInventory(String imageInventory) {
this.imageInventory = imageInventory;
}
/**
* Getter for the field minItemLevel
.
*
* @return a int
*/
public int getMinItemLevel() {
return minItemLevel;
}
/**
* Setter for the field minItemLevel
.
*
* @param minItemLevel
* a int
*/
public void setMinItemLevel(int minItemLevel) {
this.minItemLevel = minItemLevel;
}
/**
* Getter for the field maxItemLevel
.
*
* @return a int
*/
public int getMaxItemLevel() {
return maxItemLevel;
}
/**
* Setter for the field maxItemLevel
.
*
* @param maxItemLevel
* a int
*/
public void setMaxItemLevel(int maxItemLevel) {
this.maxItemLevel = maxItemLevel;
}
/**
* Getter for the field imageUrl
.
*
* @return a {@link java.lang.String} object
*/
public String getImageUrl() {
return imageUrl;
}
/**
* Setter for the field imageUrl
.
*
* @param imageUrl
* a {@link java.lang.String} object
*/
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
/**
* Getter for the field imageUrlLarge
.
*
* @return a {@link java.lang.String} object
*/
public String getImageUrlLarge() {
return imageUrlLarge;
}
/**
* Setter for the field imageUrlLarge
.
*
* @param imageUrlLarge
* a {@link java.lang.String} object
*/
public void setImageUrlLarge(String imageUrlLarge) {
this.imageUrlLarge = imageUrlLarge;
}
/**
* Getter for the field dropType
.
*
* @return a {@link java.lang.String} object
*/
public String getDropType() {
return dropType;
}
/**
* Setter for the field dropType
.
*
* @param dropType
* a {@link java.lang.String} object
*/
public void setDropType(String dropType) {
this.dropType = dropType;
}
/**
* Getter for the field itemSet
.
*
* @return a {@link java.lang.String} object
*/
public String getItemSet() {
return itemSet;
}
/**
* Setter for the field itemSet
.
*
* @param itemSet
* a {@link java.lang.String} object
*/
public void setItemSet(String itemSet) {
this.itemSet = itemSet;
}
/**
* Getter for the field holidayRestriction
.
*
* @return a {@link java.lang.String} object
*/
public String getHolidayRestriction() {
return holidayRestriction;
}
/**
* Setter for the field holidayRestriction
.
*
* @param holidayRestriction
* a {@link java.lang.String} object
*/
public void setHolidayRestriction(String holidayRestriction) {
this.holidayRestriction = holidayRestriction;
}
/**
* Getter for the field craftClass
.
*
* @return a {@link java.lang.String} object
*/
public String getCraftClass() {
return craftClass;
}
/**
* Setter for the field craftClass
.
*
* @param craftClass
* a {@link java.lang.String} object
*/
public void setCraftClass(String craftClass) {
this.craftClass = craftClass;
}
/**
* Getter for the field craftMaterialType
.
*
* @return a {@link java.lang.String} object
*/
public String getCraftMaterialType() {
return craftMaterialType;
}
/**
* Setter for the field craftMaterialType
.
*
* @param craftMaterialType
* a {@link java.lang.String} object
*/
public void setCraftMaterialType(String craftMaterialType) {
this.craftMaterialType = craftMaterialType;
}
/**
* Getter for the field capabilities
.
*
* @return a {@link com.ibasco.agql.protocols.valve.steam.webapi.pojos.SteamEconSchemaCapabilities} object
*/
public SteamEconSchemaCapabilities getCapabilities() {
return capabilities;
}
/**
* Setter for the field capabilities
.
*
* @param capabilities
* a {@link com.ibasco.agql.protocols.valve.steam.webapi.pojos.SteamEconSchemaCapabilities} object
*/
public void setCapabilities(SteamEconSchemaCapabilities capabilities) {
this.capabilities = capabilities;
}
/**
* Getter for the field usedByClasses
.
*
* @return a {@link java.util.List} object
*/
public List getUsedByClasses() {
return usedByClasses;
}
/**
* Setter for the field usedByClasses
.
*
* @param usedByClasses
* a {@link java.util.List} object
*/
public void setUsedByClasses(List usedByClasses) {
this.usedByClasses = usedByClasses;
}
/**
* Getter for the field attributes
.
*
* @return a {@link java.util.List} object
*/
public List getAttributes() {
return attributes;
}
/**
* Setter for the field attributes
.
*
* @param attributes
* a {@link java.util.List} object
*/
public void setAttributes(List attributes) {
this.attributes = attributes;
}
/**
* Getter for the field perClassLoadoutSlots
.
*
* @return a {@link java.util.Map} object
*/
public Map getPerClassLoadoutSlots() {
return perClassLoadoutSlots;
}
/**
* Setter for the field perClassLoadoutSlots
.
*
* @param perClassLoadoutSlots
* a {@link java.util.Map} object
*/
public void setPerClassLoadoutSlots(Map perClassLoadoutSlots) {
this.perClassLoadoutSlots = perClassLoadoutSlots;
}
/** {@inheritDoc} */
@Override
public String toString() {
return ReflectionToStringBuilder.toString(this, ToStringStyle.NO_CLASS_NAME_STYLE);
}
}