org.apache.shindig.social.opensocial.model
Interface MediaItem

All Known Implementing Classes:
MediaItemImpl

public interface MediaItem

A container for the media item.


Nested Class Summary
static class MediaItem.Field
          Fields for MediaItem.
static class MediaItem.Type
          An enumeration of potential media types.
 
Method Summary
 String getAlbumId()
          Get the album which the media item belongs to.
 String getCreated()
          Get the creation time
 String getDescription()
          Get the description of the media item
 String getDuration()
          Get the playtime length in seconds of the MediaItem
 String getFileSize()
          Get the MediaItem's file size
 String getId()
          Get the MediaItem's id
 String getLanguage()
          Get the language associated with the media item in ISO 639-3 format
 String getLastUpdated()
          Get the update time associated with the media item
 Address getLocation()
          Get the location corresponding to the media item
 String getMimeType()
          Get the mime type for this Media item.
 String getNumComments()
          Get the number of comments on the media item
 String getNumViews()
          Get the number of views for the media item
 String getNumVotes()
          Get the number of votes received for voting.
 String getRating()
          Get the average rating of the media item on a scale of 0-10
 String getStartTime()
          Get the time when the content is available.
 String getTaggedPeople()
          Get people tagged in the media item.
 String getTags()
          Get tags associated with this media item.
 String getThumbnailUrl()
          Get the thumbnail URL for the media item.
 String getTitle()
          Get the title for this media item
 MediaItem.Type getType()
          Get the Type of this media item, either audio, image or video.
 String getUrl()
          Get a URL for the media item.
 void setAlbumId(String albumId)
          Set the album id which the media item belongs to.
 void setCreated(String created)
          Set the creation time
 void setDescription(String description)
          Set the description of the media item
 void setDuration(String duration)
          Set the playtime length in seconds of the MediaItem
 void setFileSize(String fileSize)
          Set the number of bytes for the MediaItem
 void setId(String id)
          Set the MediaItem's id
 void setLanguage(String language)
          Set the language associated with the media item in ISO 639-3 format
 void setLastUpdated(String lastUpdated)
          Set the update time associated with the media item
 void setLocation(Address location)
          Set the location corresponding to the media item
 void setMimeType(String mimeType)
          Set the mimetype for this Media Item.
 void setNumComments(String numComments)
          Set the number of comments on the media item
 void setNumViews(String numViews)
          Set the number of views for the media item
 void setNumVotes(String numVotes)
          Set the number of votes received for voting.
 void setRating(String rating)
          Set the average rating of the media item on a scale of 0-10
 void setStartTime(String startTime)
          Set the the time when the content is available.
 void setTaggedPeople(String taggedPeople)
          Set people tagged in the media item.
 void setTags(String tags)
          Set tags associated with this media item.
 void setThumbnailUrl(String url)
          Set a thumbnail URL for the media item.
 void setTitle(String title)
          Set the title for this media item
 void setType(MediaItem.Type type)
          Get the Type of this media item, either audio, image or video.
 void setUrl(String url)
          Set a URL for the media item.
 

Method Detail

getMimeType

String getMimeType()
Get the mime type for this Media item.

Returns:
the mime type.

setMimeType

void setMimeType(String mimeType)
Set the mimetype for this Media Item.

Parameters:
mimeType - the mimeType

getType

MediaItem.Type getType()
Get the Type of this media item, either audio, image or video.

Returns:
the Type of this media item

setType

void setType(MediaItem.Type type)
Get the Type of this media item, either audio, image or video.

Parameters:
type - the type of this media item

getUrl

String getUrl()
Get a URL for the media item.

Returns:
the url of the media item

setUrl

void setUrl(String url)
Set a URL for the media item.

Parameters:
url - the media item URL

getThumbnailUrl

String getThumbnailUrl()
Get the thumbnail URL for the media item.

Returns:
the thumbnail url of the MediaItem

setThumbnailUrl

void setThumbnailUrl(String url)
Set a thumbnail URL for the media item.

Parameters:
url - the thumbnail URL of the MediaItem

getAlbumId

String getAlbumId()
Get the album which the media item belongs to.

Returns:
the album id.

setAlbumId

void setAlbumId(String albumId)
Set the album id which the media item belongs to.

Parameters:
albumId - the album id

getCreated

String getCreated()
Get the creation time

Returns:
creation time associated with the media item in UTC.

setCreated

void setCreated(String created)
Set the creation time

Parameters:
created - creation time associated with the media item in UTC.

getDescription

String getDescription()
Get the description of the media item

Returns:
description

setDescription

void setDescription(String description)
Set the description of the media item

Parameters:
description -

getDuration

String getDuration()
Get the playtime length in seconds of the MediaItem

Returns:
playtime

setDuration

void setDuration(String duration)
Set the playtime length in seconds of the MediaItem

Parameters:
duration -

getFileSize

String getFileSize()
Get the MediaItem's file size

Returns:
fileSize

setFileSize

void setFileSize(String fileSize)
Set the number of bytes for the MediaItem

Parameters:
fileSize -

getId

String getId()
Get the MediaItem's id

Returns:
id

setId

void setId(String id)
Set the MediaItem's id

Parameters:
id -

getLanguage

String getLanguage()
Get the language associated with the media item in ISO 639-3 format

Returns:

setLanguage

void setLanguage(String language)
Set the language associated with the media item in ISO 639-3 format

Parameters:
language -

getLastUpdated

String getLastUpdated()
Get the update time associated with the media item

Returns:
lastUpdated

setLastUpdated

void setLastUpdated(String lastUpdated)
Set the update time associated with the media item

Parameters:
lastUpdated -

getLocation

Address getLocation()
Get the location corresponding to the media item

Returns:
location

setLocation

void setLocation(Address location)
Set the location corresponding to the media item

Parameters:
location -

getNumComments

String getNumComments()
Get the number of comments on the media item

Returns:
numComments

setNumComments

void setNumComments(String numComments)
Set the number of comments on the media item

Parameters:
numComments -

getNumViews

String getNumViews()
Get the number of views for the media item

Returns:
numViews

setNumViews

void setNumViews(String numViews)
Set the number of views for the media item

Parameters:
numViews -

getNumVotes

String getNumVotes()
Get the number of votes received for voting.

Returns:
numVotes

setNumVotes

void setNumVotes(String numVotes)
Set the number of votes received for voting.

Parameters:
numVotes -

getRating

String getRating()
Get the average rating of the media item on a scale of 0-10

Returns:
rating

setRating

void setRating(String rating)
Set the average rating of the media item on a scale of 0-10

Parameters:
rating -

getStartTime

String getStartTime()
Get the time when the content is available.

Returns:
startTime

setStartTime

void setStartTime(String startTime)
Set the the time when the content is available.

Parameters:
startTime -

getTaggedPeople

String getTaggedPeople()
Get people tagged in the media item.

Returns:
taggedPeople

setTaggedPeople

void setTaggedPeople(String taggedPeople)
Set people tagged in the media item.

Parameters:
taggedPeople -

getTags

String getTags()
Get tags associated with this media item.

Returns:
tags

setTags

void setTags(String tags)
Set tags associated with this media item.

Parameters:
tags -

getTitle

String getTitle()
Get the title for this media item

Returns:
title

setTitle

void setTitle(String title)
Set the title for this media item

Parameters:
title -


Copyright © 2007-2012. All Rights Reserved.