me.xhsun.guildwars2wrapper.model.account.SharedInventory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gw2wrapper Show documentation
Show all versions of gw2wrapper Show documentation
Guild Wars 2 API wrapper for Android
package me.xhsun.guildwars2wrapper.model.account;
import me.xhsun.guildwars2wrapper.model.util.Storage;
/**
* For more info on Shared Inventory API go here
* Shared Inventory item model class
* if slot is empty, return null
*
* @author xhsun
* @see me.xhsun.guildwars2wrapper.model.Item item info
* @since 2017-02-07
*/
public class SharedInventory extends Storage {
private int skin;
public int getSkin() {
return skin;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SharedInventory that = (SharedInventory) o;
return getItemId() == that.getItemId() &&
getCount() == that.getCount() &&
getCharges() == that.getCharges() &&
skin == that.skin &&
getBinding() == that.getBinding();
}
@Override
public int hashCode() {
int result = getItemId();
result = 31 * result + getCount();
result = 31 * result + getCharges();
result = 31 * result + (getBinding() != null ? getBinding().hashCode() : 0);
result = 31 * result + skin;
return result;
}
@Override
public String toString() {
return "SharedInventory{" +
"id=" + getItemId() +
", count=" + getCount() +
", charges=" + getCharges() +
", binding=" + getBinding() +
", skin=" + skin +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy