Skip to content

Instantly share code, notes, and snippets.

@ryanwarsaw
Created February 29, 2016 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanwarsaw/9ed238d2fe91d8a4963b to your computer and use it in GitHub Desktop.
Save ryanwarsaw/9ed238d2fe91d8a4963b to your computer and use it in GitHub Desktop.
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