Class SeatMediaPlayerInfo
- java.lang.Object
-
- aero.panasonic.inflight.services.pairing.v1.model.SeatMediaPlayerInfo
-
public class SeatMediaPlayerInfo extends java.lang.ObjectThe SeatMediaPlayerInfo class encapsulates the media player information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSeatMediaPlayerInfo.PlaybackStateThe playback state value can be unknown, stopped, playing or paused.
-
Constructor Summary
Constructors Constructor Description SeatMediaPlayerInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContentType()Gets the type of content, such as movies, tv show or album.java.lang.StringgetCurrentPlayingMediaUri()Gets the media URI for the media that is currently playing.intgetDuration()Gets the duration of the media.intgetElapsedTime()Gets the amount of time that the media has played.SeatMediaPlayerInfo.PlaybackStategetPlayBackState()Gets the playback state for the media player.java.lang.StringgetPlayerId()Gets the unique identifier for the media player.java.lang.StringgetSoundtrack()Gets the ISO 639-2 language code for the media soundtrack.java.lang.StringgetSoundtrackType()Gets the type of media soundtrackjava.lang.StringgetSubtitle()Gets the ISO 639-2 language code for the media subtitle.java.lang.StringgetSubtitleType()Gets the type of the media subtitleintgetVolume()Gets the volume of the media.voidsetContentType(java.lang.String contentType)Sets the type of media content, such as movies, tv show or album.voidsetCurrentPlayingMediaUri(java.lang.String currentPlayingMediaUri)Sets the URI for the media that is currently playing.voidsetDuration(int duration)Sets the duration of the media.voidsetElapsedTime(int elapsedTime)Sets the amount of time that the media has played.voidsetPlayBackState(SeatMediaPlayerInfo.PlaybackState playBackState)Sets the playback state for the media media player.voidsetPlayerId(java.lang.String playerId)Sets the unique identifier for the media player.voidsetSoundtrack(java.lang.String soundtrack)Sets the ISO 639-2 language code for the media soundtrack.voidsetSoundtrackType(java.lang.String soundtrackType)sets the soundtrack type of mediavoidsetSubtitle(java.lang.String subtitle)Sets the ISO 639-2 language code for the media subtitle.voidsetSubtitleType(java.lang.String subtitleType)Sets the subtitle type of mediavoidsetVolume(int volume)Sets the volume for the media.JSONObjecttoJson()Convert to Json object.
-
-
-
Method Detail
-
getPlayerId
public java.lang.String getPlayerId()
Gets the unique identifier for the media player.- Returns:
- playerId
-
getCurrentPlayingMediaUri
public java.lang.String getCurrentPlayingMediaUri()
Gets the media URI for the media that is currently playing.- Returns:
- media URI
-
getPlayBackState
public SeatMediaPlayerInfo.PlaybackState getPlayBackState()
Gets the playback state for the media player.
Values are paused, playing, stopped and unknown.- Returns:
SeatMediaPlayerInfo.PlaybackState
-
getContentType
public java.lang.String getContentType()
Gets the type of content, such as movies, tv show or album.- Returns:
- content type
-
getSubtitle
public java.lang.String getSubtitle()
Gets the ISO 639-2 language code for the media subtitle.- Returns:
- subtitle
-
getSoundtrack
public java.lang.String getSoundtrack()
Gets the ISO 639-2 language code for the media soundtrack.- Returns:
- soundtrack
-
getSubtitleType
public java.lang.String getSubtitleType()
Gets the type of the media subtitle
-
getSoundtrackType
public java.lang.String getSoundtrackType()
Gets the type of media soundtrack
-
getVolume
public int getVolume()
Gets the volume of the media.
Volume is specified from 0 to 100.- Returns:
- volume
-
getDuration
public int getDuration()
Gets the duration of the media.
Duration is specified in seconds.- Returns:
- duration
-
getElapsedTime
public int getElapsedTime()
Gets the amount of time that the media has played.
Elapsed time is specified in seconds.- Returns:
- elapsed time
-
setPlayerId
public void setPlayerId(java.lang.String playerId)
Sets the unique identifier for the media player.
-
setCurrentPlayingMediaUri
public void setCurrentPlayingMediaUri(java.lang.String currentPlayingMediaUri)
Sets the URI for the media that is currently playing.
-
setPlayBackState
public void setPlayBackState(SeatMediaPlayerInfo.PlaybackState playBackState)
Sets the playback state for the media media player.
Values are paused, playing, stopped and unknown.
-
setContentType
public void setContentType(java.lang.String contentType)
Sets the type of media content, such as movies, tv show or album.
-
setSubtitle
public void setSubtitle(java.lang.String subtitle)
Sets the ISO 639-2 language code for the media subtitle.
-
setSoundtrack
public void setSoundtrack(java.lang.String soundtrack)
Sets the ISO 639-2 language code for the media soundtrack.
-
setVolume
public void setVolume(int volume)
Sets the volume for the media.
The value is specified from 1 to 100.
-
setDuration
public void setDuration(int duration)
Sets the duration of the media.
Duration is specified in hours:minutes:seconds.
-
setElapsedTime
public void setElapsedTime(int elapsedTime)
Sets the amount of time that the media has played.
Elapsed time is specified in seconds.
-
setSubtitleType
public void setSubtitleType(java.lang.String subtitleType)
Sets the subtitle type of media- Parameters:
subtitleType- type of subtitle
-
setSoundtrackType
public void setSoundtrackType(java.lang.String soundtrackType)
sets the soundtrack type of media- Parameters:
soundtrackType- type of soundtrack of media
-
toJson
public JSONObject toJson()
Convert to Json object.
-
-