com.citygrid.content.offers
Class CGOffersOffer

java.lang.Object
  extended by com.citygrid.content.offers.CGOffersOffer

public class CGOffersOffer
extends Object


Nested Class Summary
static class CGOffersOffer.Builder
           
 
Field Summary
private  URI attributionLogo
           
private  String attributionSource
           
private  float discountValue
           
private  Date expirationDate
           
private  float faceValue
           
private  URI imageUrl
           
private  String impressionId
           
private  CGOffersLocation[] locations
           
private  String offerDescription
           
private  String offerId
           
private  int popularity
           
private  String redemptionType
           
private  int redemptionTypeId
           
private  URI redemptionUrl
           
private  int referenceId
           
private  String source
           
private  Date startDate
           
private  String terms
           
private  String title
           
private  CGOffersType[] types
           
 
Constructor Summary
CGOffersOffer(CGOffersOffer.Builder builder)
           
 
Method Summary
 boolean equals(Object o)
           
 URI getAttributionLogo()
           
 String getAttributionSource()
           
 float getDiscountValue()
           
 Date getExpirationDate()
           
 float getFaceValue()
           
 URI getImageUrl()
           
 String getImpressionId()
           
 CGOffersLocation[] getLocations()
           
 String getOfferDescription()
           
 String getOfferId()
           
 int getPopularity()
           
 String getRedemptionType()
           
 int getRedemptionTypeId()
           
 URI getRedemptionUrl()
           
 int getReferenceId()
           
 String getSource()
           
 Date getStartDate()
           
 String getTerms()
           
 String getTitle()
           
 CGOffersType[] getTypes()
           
 int hashCode()
           
 CGOffersDetail offersDetail()
          Convenience method that provides a builder CGOffersDetail for current offer.
 CGOffersOffer offersDetailOffer()
          Convenience method that retrieves details of current offer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

offerId

private String offerId

referenceId

private int referenceId

impressionId

private String impressionId

title

private String title

offerDescription

private String offerDescription

redemptionTypeId

private int redemptionTypeId

redemptionType

private String redemptionType

redemptionUrl

private URI redemptionUrl

terms

private String terms

source

private String source

types

private CGOffersType[] types

imageUrl

private URI imageUrl

startDate

private Date startDate

expirationDate

private Date expirationDate

popularity

private int popularity

faceValue

private float faceValue

discountValue

private float discountValue

locations

private CGOffersLocation[] locations

attributionSource

private String attributionSource

attributionLogo

private URI attributionLogo
Constructor Detail

CGOffersOffer

public CGOffersOffer(CGOffersOffer.Builder builder)
Method Detail

getOfferId

public String getOfferId()

getReferenceId

public int getReferenceId()

getImpressionId

public String getImpressionId()

getTitle

public String getTitle()

getOfferDescription

public String getOfferDescription()

getRedemptionTypeId

public int getRedemptionTypeId()

getRedemptionType

public String getRedemptionType()

getRedemptionUrl

public URI getRedemptionUrl()

getTerms

public String getTerms()

getSource

public String getSource()

getTypes

public CGOffersType[] getTypes()

getImageUrl

public URI getImageUrl()

getStartDate

public Date getStartDate()

getExpirationDate

public Date getExpirationDate()

getPopularity

public int getPopularity()

getFaceValue

public float getFaceValue()

getDiscountValue

public float getDiscountValue()

getLocations

public CGOffersLocation[] getLocations()

getAttributionSource

public String getAttributionSource()

getAttributionLogo

public URI getAttributionLogo()

offersDetail

public CGOffersDetail offersDetail()
Convenience method that provides a builder CGOffersDetail for current offer.


offersDetailOffer

public CGOffersOffer offersDetailOffer()
                                throws CGException
Convenience method that retrieves details of current offer.

Throws:
CGException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.