public static class PlayerMarketTransaction.TransactionLineItem
extends java.lang.Object
Constructor and Description |
---|
PlayerMarketTransaction.TransactionLineItem(java.lang.String id,
PlayerMarketTransaction.LineItemType itemType,
CargoAPI.CargoItemType cargoType,
SubmarketAPI submarket,
float quantity,
float price,
float tariff,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
CargoAPI.CargoItemType |
getCargoType() |
float |
getDemandPrice()
Only set for an "UPDATE", which assumes that the price/tariff pair is for the supply prices.
|
float |
getDemandTariff() |
java.lang.String |
getId() |
PlayerMarketTransaction.LineItemType |
getItemType() |
float |
getPrice() |
float |
getQuantity() |
SubmarketAPI |
getSubmarket() |
float |
getTariff() |
long |
getTimestamp() |
void |
setCargoType(CargoAPI.CargoItemType cargoType) |
void |
setDemandPrice(float price2) |
void |
setDemandTariff(float demandTariff) |
void |
setId(java.lang.String id) |
void |
setItemType(PlayerMarketTransaction.LineItemType itemType) |
void |
setPrice(float price) |
void |
setQuantity(float quantity) |
void |
setSubmarket(SubmarketAPI submarket) |
void |
setTariff(float tariff) |
void |
setTimestamp(long timestamp) |
public PlayerMarketTransaction.TransactionLineItem(java.lang.String id, PlayerMarketTransaction.LineItemType itemType, CargoAPI.CargoItemType cargoType, SubmarketAPI submarket, float quantity, float price, float tariff, long timestamp)
public float getDemandPrice()
public void setDemandPrice(float price2)
public float getDemandTariff()
public void setDemandTariff(float demandTariff)
public float getTariff()
public void setTariff(float tariff)
public SubmarketAPI getSubmarket()
public void setSubmarket(SubmarketAPI submarket)
public java.lang.String getId()
public void setId(java.lang.String id)
public PlayerMarketTransaction.LineItemType getItemType()
public void setItemType(PlayerMarketTransaction.LineItemType itemType)
public CargoAPI.CargoItemType getCargoType()
public void setCargoType(CargoAPI.CargoItemType cargoType)
public float getQuantity()
public void setQuantity(float quantity)
public float getPrice()
public void setPrice(float price)
public long getTimestamp()
public void setTimestamp(long timestamp)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.