Class PlaylistItem
- java.lang.Object
-
- aero.panasonic.inflight.services.media.MediaItemBase
-
- aero.panasonic.inflight.services.user.v2.playlist.PlaylistItem
-
public class PlaylistItem extends MediaItemBase
This class models a media item which can be added to aPlaylist.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlaylistItem.AvailabilityStatusManages the availability status of the media item for the specific flight-
Nested classes/interfaces inherited from class aero.panasonic.inflight.services.media.MediaItemBase
MediaItemBase.SoundTrack, MediaItemBase.SubTitle
-
-
Constructor Summary
Constructors Constructor Description PlaylistItem()PlaylistItem(java.lang.String mediaUri)Creates a newPlaylistItemand adds it to the Favorites list using the specified media URI.PlaylistItem(JSONObject json)Constructs an instance of this class using the provided JSON object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetAirlineContentId()A unique airline content ID that is valid globally, i.e., consistent across different vendor platforms.java.lang.StringgetAirlineContentIdParent()Airline-specific unique content ID for the album containing a track, or for the TV series containing an episode.java.lang.StringgetCid()The media category from which the item was added to the playlist.java.lang.StringgetContentType()ReturnsContentType, of the media Item.floatgetElapsedTime()Returns the amount of time the media item has playedjava.lang.StringgetId()Returns ID for the media item.java.lang.StringgetMediaUri()Returns the media identifier for the media itemsjava.lang.StringgetParentMediaUri()Gets the mParentMediaUri for the child media content URIlonggetTimestamp()inthashCode()java.lang.StringtoString()-
Methods inherited from class aero.panasonic.inflight.services.media.MediaItemBase
getArtist, getAspectRatio, getAttributes, getBundles, getCast, getCategoryId, getChildMediaCount, getCopyright, getCountryOrigin, getCriticScore, getDescription, getDirector, getDuration, getGenre, getMediaType, getPeopleScore, getPosterImages, getPrice, getRating, getRatingDescription, getReview, getShortDescription, getShortTitle, getSoundtracks, getSubtitles, getSynopsisImages, getTitle, getTrailerMediaUri, getYear, setCategoryId
-
-
-
-
Constructor Detail
-
PlaylistItem
public PlaylistItem()
-
PlaylistItem
public PlaylistItem(java.lang.String mediaUri)
Creates a newPlaylistItemand adds it to the Favorites list using the specified media URI.- Parameters:
mediaUri- the unique media URI identifying the content item
-
PlaylistItem
public PlaylistItem(JSONObject json)
Constructs an instance of this class using the provided JSON object.Expected JSON structure:
{ "media_uri": "media:some_track_id", "parent_media_uri": "media:some_album_id", "content_type": "track", "airline_content_id_parent": "parent_content_123", "airline_content_id": "content_456", "cid": "cid_789" }- Parameters:
json- theJSONObjectcontaining media and content details.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classMediaItemBase
-
getParentMediaUri
public java.lang.String getParentMediaUri()
Gets the mParentMediaUri for the child media content URI- Overrides:
getParentMediaUriin classMediaItemBase- Returns:
- java.lang.String
-
getElapsedTime
public float getElapsedTime()
Returns the amount of time the media item has played- Returns:
- return elapsed time
-
getMediaUri
public java.lang.String getMediaUri()
Returns the media identifier for the media items- Overrides:
getMediaUriin classMediaItemBase- Returns:
- java.lang.String
-
getContentType
public java.lang.String getContentType()
ReturnsContentType, of the media Item.- Overrides:
getContentTypein classMediaItemBase- Returns:
- String
-
getAirlineContentId
public java.lang.String getAirlineContentId()
A unique airline content ID that is valid globally, i.e., consistent across different vendor platforms.- Returns:
- String
-
getAirlineContentIdParent
public java.lang.String getAirlineContentIdParent()
Airline-specific unique content ID for the album containing a track, or for the TV series containing an episode.- Returns:
- String
-
getCid
public java.lang.String getCid()
The media category from which the item was added to the playlist.- Returns:
- String
-
getId
public java.lang.String getId()
Returns ID for the media item.
-
getTimestamp
public long getTimestamp()
-
-