Created
February 28, 2016 18:22
-
-
Save ryanwarsaw/f5cf75379403923aa054 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> offersSent; | |
private Collection<TradeOffer> offersReceived; | |
public Collection<TradeOffer> getOffersSent() { | |
return offersSent; | |
} | |
public Collection<TradeOffer> getOffersReceived() { | |
return offersReceived; | |
} | |
@JsonProperty("trade_offers_sent") | |
private void setOffersSent(Collection<TradeOffer> offersSent) { | |
this.offersSent = offersSent; | |
} | |
@JsonProperty("trade_offers_received") | |
private void setOffersReceived(Collection<TradeOffer> offersReceived) { | |
this.offersReceived = offersReceived; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment