Class StockMarketEntry
- java.lang.Object
-
- org.rspeer.game.service.stockmarket.StockMarketEntry
-
public class StockMarketEntry extends Object
-
-
Constructor Summary
Constructors Constructor Description StockMarketEntry(int itemId, int itemQuantity, int itemPrice)
StockMarketEntry(RSStockMarketTransaction trans)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
getItemId()
int
getItemPrice()
int
getItemQuantity()
int
getTimestamp()
StockMarketable.Type
getType()
void
setItemQuantity(int itemQuantity)
void
setTimestamp(int timestamp)
FOR INTERNAL USE ONLYvoid
setType(StockMarketable.Type type)
String
toString()
-
-
-
Constructor Detail
-
StockMarketEntry
public StockMarketEntry(int itemId, int itemQuantity, int itemPrice)
- Parameters:
itemId
- The id of the item to buy or sellitemQuantity
- The quantity of the item to buy or sellitemPrice
- The price of the item to buy or sell. A negative value indicates that it should be a percent increase by n. -3 will click the +5/-5% button 3 times
-
StockMarketEntry
public StockMarketEntry(RSStockMarketTransaction trans)
-
-
Method Detail
-
getItemId
public int getItemId()
-
getItemQuantity
public int getItemQuantity()
-
setItemQuantity
public void setItemQuantity(int itemQuantity)
-
getItemPrice
public int getItemPrice()
-
getTimestamp
public int getTimestamp()
- Returns:
- The time this offer was placed, in ticks.
Integer.MIN_VALUE
if the offer isn't placed yet
-
setTimestamp
public void setTimestamp(int timestamp)
FOR INTERNAL USE ONLY- Parameters:
timestamp
- The time this offer was placed, in ticks.Integer.MIN_VALUE
if the offer isn't placed yet
-
getType
public StockMarketable.Type getType()
-
setType
public void setType(StockMarketable.Type type)
-
-