Created
February 29, 2016 03:42
-
-
Save ryanwarsaw/9ed238d2fe91d8a4963b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.ryanw.tradeoffermanager.handler; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonRootName; | |
import me.ryanw.tradeoffermanager.offer.TradeOffer; | |
import java.util.Collection; | |
@JsonRootName("response") | |
public class TradeOfferHandler { | |
private Collection<TradeOffer> sent; | |
private Collection<TradeOffer> received; | |
/** | |
* Gets a collection of {@link TradeOffer}'s that represent the latest trade offers that were sent | |
* (up to a maximum of five-hundred) from the account associated with the Web API key being used. | |
* | |
* @return latest trade offers that were sent (up to a maximum of five-hundred). | |
*/ | |
public Collection<TradeOffer> getSent() { | |
return sent; | |
} | |
/** | |
* Gets a collection of {@link TradeOffer}'s that represent the latest trade offers that were received | |
* (up to a maximum of one-thousand) from the account associated with the Web API key being used. | |
* | |
* @return latest trade offers that were received (up to a maximum of one-thousand). | |
*/ | |
public Collection<TradeOffer> getReceived() { | |
return received; | |
} | |
@JsonProperty("trade_offers_sent") | |
private void setSent(Collection<TradeOffer> sent) { | |
this.sent = sent; | |
} | |
@JsonProperty("trade_offers_received") | |
private void setReceived(Collection<TradeOffer> received) { | |
this.received = received; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment