com.citygrid.content.offers
Class CGOffersOffer
java.lang.Object
com.citygrid.content.offers.CGOffersOffer
public class CGOffersOffer
- extends Object
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
CGOffersOffer
public CGOffersOffer(CGOffersOffer.Builder builder)
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.