Class StockMarketEntry


  • public class StockMarketEntry
    extends Object
    • Constructor Detail

      • StockMarketEntry

        public StockMarketEntry​(int itemId,
                                int itemQuantity,
                                int itemPrice)
        Parameters:
        itemId - The id of the item to buy or sell
        itemQuantity - The quantity of the item to buy or sell
        itemPrice - 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
    • 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