com.citygrid.ads.custom
Class CGAdsCustomAd

java.lang.Object
  extended by com.citygrid.ads.custom.CGAdsCustomAd
All Implemented Interfaces:
CGLocation, CGLocationDetailProvider, HasLocationIdAndImpressionId, Serializable

public class CGAdsCustomAd
extends Object
implements CGLocation, CGLocationDetailProvider, Serializable

See Also:
Serialized Form

Nested Class Summary
static class CGAdsCustomAd.Builder
           
 
Field Summary
private  int adId
           
private  String attributionText
           
private  CGBaseLocation baseLocation
           
private  String businessDescription
           
private  URI destinationUrl
           
private  URI displayUrl
           
private  float distance
           
private  String offers
           
private  float ppe
           
private  int reviews
           
private  String tagline
           
private  String type
           
 
Constructor Summary
private CGAdsCustomAd(CGAdsCustomAd.Builder builder)
           
 
Method Summary
 boolean equals(Object o)
           
 CGAddress getAddress()
           
 int getAdId()
           
 String getAttributionText()
           
 String getBusinessDescription()
           
 URI getDestinationUrl()
           
 URI getDisplayUrl()
           
 float getDistance()
           
 URI getImage()
           
 String getImpressionId()
           
 CGLatLon getLatlon()
           
 int getLocationId()
           
 String getName()
           
 String getOffers()
           
 String getPhone()
           
 float getPpe()
           
 int getRating()
           
 int getReviews()
           
 String getTagline()
           
 String getType()
           
 int hashCode()
           
 CGPlacesDetail placesDetail()
          Convenience methods that returns a builder CGPlacesDetail for current location.
 CGPlacesDetailLocation placesDetailLocation()
          Convenience methods that returns details of current location.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

baseLocation

private CGBaseLocation baseLocation

adId

private int adId

type

private String type

tagline

private String tagline

businessDescription

private String businessDescription

destinationUrl

private URI destinationUrl

displayUrl

private URI displayUrl

ppe

private float ppe

reviews

private int reviews

offers

private String offers

distance

private float distance

attributionText

private String attributionText
Constructor Detail

CGAdsCustomAd

private CGAdsCustomAd(CGAdsCustomAd.Builder builder)
Method Detail

getLocationId

public int getLocationId()
Specified by:
getLocationId in interface HasLocationIdAndImpressionId

getImpressionId

public String getImpressionId()
Specified by:
getImpressionId in interface HasLocationIdAndImpressionId

getName

public String getName()
Specified by:
getName in interface CGLocation

getAddress

public CGAddress getAddress()
Specified by:
getAddress in interface CGLocation

getLatlon

public CGLatLon getLatlon()
Specified by:
getLatlon in interface CGLocation

getImage

public URI getImage()
Specified by:
getImage in interface CGLocation

getPhone

public String getPhone()
Specified by:
getPhone in interface CGLocation

getRating

public int getRating()
Specified by:
getRating in interface CGLocation

getAdId

public int getAdId()

getType

public String getType()

getTagline

public String getTagline()

getBusinessDescription

public String getBusinessDescription()

getDestinationUrl

public URI getDestinationUrl()

getDisplayUrl

public URI getDisplayUrl()

getPpe

public float getPpe()

getReviews

public int getReviews()

getOffers

public String getOffers()

getDistance

public float getDistance()

getAttributionText

public String getAttributionText()

placesDetail

public CGPlacesDetail placesDetail()
Convenience methods that returns a builder CGPlacesDetail for current location.

Specified by:
placesDetail in interface CGLocationDetailProvider
Returns:

placesDetailLocation

public CGPlacesDetailLocation placesDetailLocation()
                                            throws CGException
Convenience methods that returns details of current location.

Specified by:
placesDetailLocation in interface CGLocationDetailProvider
Returns:
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.