summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Grover <joeygrover@gmail.com>2019-05-22 14:43:32 -0400
committerJoey Grover <joeygrover@gmail.com>2019-05-22 14:43:32 -0400
commit533e09fbd64c268e3e82f0555100fd0b63d041bd (patch)
treeb4be36e427ce51c55501e137c12fd467e514d936
parent38b8d2256e45b38657788f199cd4769f41c870df (diff)
downloadsdl_android-533e09fbd64c268e3e82f0555100fd0b63d041bd.tar.gz
Add mediaImage to MediaServiceData
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/MediaServiceData.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/MediaServiceData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/MediaServiceData.java
index cdd5d21a4..d9e79612f 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/MediaServiceData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/MediaServiceData.java
@@ -45,6 +45,7 @@ public class MediaServiceData extends RPCStruct {
public static final String KEY_MEDIA_TITLE = "mediaTitle";
public static final String KEY_MEDIA_ARTIST = "mediaArtist";
public static final String KEY_MEDIA_ALBUM = "mediaAlbum";
+ public static final String KEY_MEDIA_IMAGE = "mediaImage";
public static final String KEY_PLAYLIST_NAME = "playlistName";
public static final String KEY_IS_EXPLICIT = "isExplicit";
public static final String KEY_TRACK_PLAYBACK_PROGRESS = "trackPlaybackProgress";
@@ -139,6 +140,28 @@ public class MediaServiceData extends RPCStruct {
}
/**
+ * Sets the media image associated with the currently playing media
+ * Music: The album art of the current track
+ * Podcast: The podcast or chapter artwork of the current podcast episode
+ * Audiobook: The book or chapter artwork of the current audiobook
+ * @param mediaImage
+ */
+ public void setMediaImage(Image mediaImage){
+ setValue(KEY_MEDIA_IMAGE, mediaImage);
+ }
+
+ /**
+ * Returns the media image associated with the currently playing media
+ * Music: The album art of the current track
+ * Podcast: The podcast or chapter artwork of the current podcast episode
+ * Audiobook: The book or chapter artwork of the current audiobook
+ * @param mediaImage
+ */
+ public Image getMediaImage(Image mediaImage){
+ return (Image) getObject(Image.class, KEY_MEDIA_IMAGE);
+ }
+
+ /**
* Music: The name of the playlist or radio station, if the user is playing from a playlist, otherwise, Null
* Podcast: The name of the playlist, if the user is playing from a playlist, otherwise, Null
* Audiobook: Likely not applicable, possibly a collection or "playlist" of books