public class DisplayContent
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
contentType |
private double |
distance |
private java.lang.String |
imageURL |
private java.util.List<java.lang.String> |
location |
private java.lang.String |
longDescription |
private java.lang.String |
mobileURL |
private java.lang.String |
phoneNumber |
private int |
priceTier |
private java.lang.String |
shortTitle |
private java.lang.String |
venueCategory |
| Constructor and Description |
|---|
DisplayContent(java.lang.String imageURL,
java.lang.String shortTitle,
java.lang.String longDescription,
java.lang.String mobileURL,
java.lang.String phoneNumber,
double distance,
java.util.List<java.lang.String> location,
java.lang.String venueCategory,
int priceTier,
java.lang.String contentType)
Constructor for Content object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAddress()
If a location, gets the address of the location
formatted for display.
|
java.lang.String |
getContentType()
Gets the type of the content.
|
java.lang.String |
getFormattedDistanceInMiles()
If a location, gets the formatted distance away from the
user's current location in miles.
|
java.lang.String |
getFormattedSubtitle()
Gets the formatted subtitle for
the content, which is the
venue category and the price
tier.
|
java.lang.String |
getImageURL()
The image URL of the content's image.
|
java.lang.String |
getLongDescription()
Gets the long description text.
|
java.lang.String |
getMobileURL()
Gets the content's external link's URL.
|
java.lang.String |
getPhoneNumber()
Gets the content's phone number, un-formatted.
|
int |
getPriceTier()
Gets the price tier, if applicable.
|
java.lang.String |
getShortTitle()
Gets the content's short title, i.e.
|
java.lang.String |
getVenueCategory()
Gets the venue category.
|
private java.lang.String contentType
private double distance
private java.lang.String imageURL
private java.util.List<java.lang.String> location
private java.lang.String longDescription
private java.lang.String mobileURL
private java.lang.String phoneNumber
private int priceTier
private java.lang.String shortTitle
private java.lang.String venueCategory
public DisplayContent(java.lang.String imageURL,
java.lang.String shortTitle,
java.lang.String longDescription,
java.lang.String mobileURL,
java.lang.String phoneNumber,
double distance,
java.util.List<java.lang.String> location,
java.lang.String venueCategory,
int priceTier,
java.lang.String contentType)
imageURL - the imageURL to display.shortTitle - the title of the content.longDescription - the longer text description shown below the title.mobileURL - the external link opened when content is appropriately selected.phoneNumber - the phone number of the location and or advertisement.distance - the distance to the location.public java.lang.String getAddress()
public java.lang.String getContentType()
public java.lang.String getFormattedDistanceInMiles()
public java.lang.String getFormattedSubtitle()
public java.lang.String getImageURL()
public java.lang.String getLongDescription()
public java.lang.String getMobileURL()
public java.lang.String getPhoneNumber()
public int getPriceTier()
public java.lang.String getShortTitle()
public java.lang.String getVenueCategory()