facebook4j.internal.json
Class OfferJSONImpl

java.lang.Object
  extended by facebook4j.internal.json.FacebookResponseImpl
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface facebook4j.FacebookResponse
FacebookResponse.Metadata
 
Field Summary
private  java.lang.Integer claimLimit
           
private  java.lang.String couponType
           
private  java.util.Date createdTime
           
private  java.util.Date expirationTime
           
private  Category from
           
private  java.lang.String id
           
private  java.net.URL imageURL
           
private  java.lang.Boolean isPublished
           
private  java.lang.String redemptionCode
           
private  java.net.URL redemptionLink
           
private  java.util.Date reminderTime
           
private  java.lang.Integer scheduledPublishTime
           
private static long serialVersionUID
           
private  java.lang.String terms
           
private  java.lang.String title
           
 
Constructor Summary
OfferJSONImpl(HttpResponse res, Configuration conf)
           
OfferJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Offer> createOfferList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object o)
           
 java.lang.Integer getClaimLimit()
           
 java.lang.String getCouponType()
           
 java.util.Date getCreatedTime()
           
 java.util.Date getExpirationTime()
           
 Category getFrom()
           
 java.lang.String getId()
           
 java.net.URL getImageURL()
           
 java.lang.String getRedemptionCode()
           
 java.net.URL getRedemptionLink()
           
 java.util.Date getReminderTime()
           
 java.lang.Integer getScheduledPublishTime()
           
 java.lang.String getTerms()
           
 java.lang.String getTitle()
           
 int hashCode()
           
private  void init(JSONObject json)
           
 java.lang.Boolean isPublished()
           
 java.lang.String toString()
           
 
Methods inherited from class facebook4j.internal.json.FacebookResponseImpl
getMetadata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

OfferJSONImpl

OfferJSONImpl(HttpResponse res,
              Configuration conf)
        throws FacebookException
Throws:
FacebookException

OfferJSONImpl

OfferJSONImpl(JSONObject json)
        throws FacebookException
Throws:
FacebookException
Method Detail

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