From e8be0cafd82ab37118e717b18822ca15efdbbec8 Mon Sep 17 00:00:00 2001 From: David Geisler Date: Tue, 29 Nov 2022 00:27:46 +0100 Subject: [PATCH] Add id field to MusicPlayItem --- .../iot/dirigera/client/api/model/music/MusicPlayItem.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dirigera-client-api/src/main/java/de/dvdgeisler/iot/dirigera/client/api/model/music/MusicPlayItem.java b/dirigera-client-api/src/main/java/de/dvdgeisler/iot/dirigera/client/api/model/music/MusicPlayItem.java index f178eea..325e68d 100644 --- a/dirigera-client-api/src/main/java/de/dvdgeisler/iot/dirigera/client/api/model/music/MusicPlayItem.java +++ b/dirigera-client-api/src/main/java/de/dvdgeisler/iot/dirigera/client/api/model/music/MusicPlayItem.java @@ -5,6 +5,7 @@ @JsonInclude(Include.NON_NULL) public class MusicPlayItem { + public String id; public String title; public String artist; public String album; @@ -14,8 +15,8 @@ public class MusicPlayItem { public MusicPlayItem() { } - public MusicPlayItem(String title, String artist, String album, String imageUrl, - Long duration) { + public MusicPlayItem(final String id, final String title, final String artist, final String album, final String imageUrl, final Long duration) { + this.id = id; this.title = title; this.artist = artist; this.album = album;