public class MediaItem extends Model
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static String |
ALBUM_ID |
static String |
CAPTION |
static String |
DESCRIPTION |
static String |
ID |
static String |
MIME_TYPE |
static String |
THUMBNAIL_URL |
static String |
TYPE |
static String |
URL |
| Constructor and Description |
|---|
MediaItem() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlbumId()
Returns the identifier of the album to which the media item belongs.
|
String |
getCaption()
Returns the media item's caption if set.
|
String |
getDescription()
Returns the media item's description if set.
|
String |
getId()
Returns the media item's associated ID.
|
String |
getMimeType()
Returns the MIME type of the media item's content.
|
String |
getThumbnailUrl()
Returns the URL of the media item's thumbnail image as a string.
|
String |
getType()
Returns the media item's type, one of 'audio', 'image', or 'video'.
|
String |
getUrl()
Returns the URL where the media can be found as a string.
|
void |
setAlbumId(String albumId)
Sets the identifier of the album to which the media item belongs.
|
void |
setCaption(String caption)
Sets the media item's caption/title.
|
void |
setDescription(String description)
Sets the media item's description.
|
void |
setId(String id)
Sets the media item's unique identifier.
|
void |
setMimeType(String mimeType)
Sets the MIME type of the media item's content.
|
void |
setThumbnailUrl(String thumbnailUrl)
Sets the URL of the media item's thumbnail image as a string.
|
void |
setType(String type)
Sets the media item's type.
|
void |
setUrl(String url)
Sets the URL where the media can be found.
|
addTemplateParameter, addToListField, getField, getFieldAsList, getFieldAsMap, getFieldAsString, getFieldNames, getTemplateParameter, hasField, isFieldMultikeyed, isFieldMultivalued, setFieldescape, toJSONString, toJSONString, toString, toString, writeJSONString, writeJSONStringclear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCodepublic static final String ID
public static final String URL
public static final String TYPE
public static final String CAPTION
public static final String ALBUM_ID
public static final String MIME_TYPE
public static final String DESCRIPTION
public static final String THUMBNAIL_URL
public String getId()
public String getAlbumId()
public String getUrl()
public String getThumbnailUrl()
public String getType()
public String getMimeType()
public String getCaption()
public String getDescription()
public void setId(String id)
id - identifier to setpublic void setAlbumId(String albumId)
albumId - ID of album intended to contain media itempublic void setUrl(String url)
url - URL to setpublic void setThumbnailUrl(String thumbnailUrl)
thumbnailUrl - URL of media item thumbnail to setpublic void setType(String type)
type - type to set; must be 'audio', 'image', or 'video'public void setMimeType(String mimeType)
mimeType - MIME type to setpublic void setCaption(String caption)
caption - caption/title to setpublic void setDescription(String description)
description - description to setCopyright © 2012. All Rights Reserved.