facebook4j.internal.json
Class OfferJSONImpl
java.lang.Object
facebook4j.internal.json.FacebookResponseImpl
facebook4j.internal.json.OfferJSONImpl
- All Implemented Interfaces:
- FacebookResponse, Offer, java.io.Serializable
final class OfferJSONImpl
- extends FacebookResponseImpl
- implements Offer, java.io.Serializable
- Author:
- Ryuji Yamashita - roundrop at gmail.com
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
id
private java.lang.String id
from
private Category from
title
private java.lang.String title
createdTime
private java.util.Date createdTime
expirationTime
private java.util.Date expirationTime
terms
private java.lang.String terms
imageURL
private java.net.URL imageURL
claimLimit
private java.lang.Integer claimLimit
couponType
private java.lang.String couponType
redemptionLink
private java.net.URL redemptionLink
redemptionCode
private java.lang.String redemptionCode
isPublished
private java.lang.Boolean isPublished
scheduledPublishTime
private java.lang.Integer scheduledPublishTime
reminderTime
private java.util.Date reminderTime
OfferJSONImpl
OfferJSONImpl(HttpResponse res,
Configuration conf)
throws FacebookException
- Throws:
FacebookException
OfferJSONImpl
OfferJSONImpl(JSONObject json)
throws FacebookException
- Throws:
FacebookException
init
private void init(JSONObject json)
throws FacebookException
- Throws:
FacebookException
getId
public java.lang.String getId()
- Specified by:
getId in interface Offer
getFrom
public Category getFrom()
- Specified by:
getFrom in interface Offer
getTitle
public java.lang.String getTitle()
- Specified by:
getTitle in interface Offer
getCreatedTime
public java.util.Date getCreatedTime()
- Specified by:
getCreatedTime in interface Offer
getExpirationTime
public java.util.Date getExpirationTime()
- Specified by:
getExpirationTime in interface Offer
getTerms
public java.lang.String getTerms()
- Specified by:
getTerms in interface Offer
getImageURL
public java.net.URL getImageURL()
- Specified by:
getImageURL in interface Offer
getClaimLimit
public java.lang.Integer getClaimLimit()
- Specified by:
getClaimLimit in interface Offer
getCouponType
public java.lang.String getCouponType()
- Specified by:
getCouponType in interface Offer
getRedemptionLink
public java.net.URL getRedemptionLink()
- Specified by:
getRedemptionLink in interface Offer
getRedemptionCode
public java.lang.String getRedemptionCode()
- Specified by:
getRedemptionCode in interface Offer
isPublished
public java.lang.Boolean isPublished()
- Specified by:
isPublished in interface Offer
getScheduledPublishTime
public java.lang.Integer getScheduledPublishTime()
- Specified by:
getScheduledPublishTime in interface Offer
getReminderTime
public java.util.Date getReminderTime()
- Specified by:
getReminderTime in interface Offer
createOfferList
static ResponseList<Offer> createOfferList(HttpResponse res,
Configuration conf)
throws FacebookException
- Throws:
FacebookException
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object