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

me.xhsun.guildwars2wrapper.model.v2.commerce.Transaction Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
package me.xhsun.guildwars2wrapper.model.v2.commerce;

import me.xhsun.guildwars2wrapper.model.v2.Item;

/**
 * For more info on Transaction API go here
* Player but/sell list model class
* Note: purchased only applied in history
* Note: price are in coins * * @author xhsun * @see Item item info * @since 2017-02-07 */ public class Transaction { public enum Time {Current, History} public enum Type {Buy, Sell} private long id; private int item_id; private long price; private int quantity; private String created; private String purchased;//not applied in current public long getId() { return id; } public int getItemId() { return item_id; } public long getPrice() { return price; } public int getQuantity() { return quantity; } /** * @return ISO-8601 standard timestamp */ public String getCreated() { return created; } /** * @return ISO-8601 standard timestamp */ public String getPurchased() { return purchased; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Transaction that = (Transaction) o; return id == that.id; } @Override public int hashCode() { return (int) (id ^ (id >>> 32)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy