Skip to content

Commit

Permalink
Move SpeakerPlayItem to MusicPlayItem
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdgeisler committed Nov 28, 2022
1 parent 4f39cf9 commit 4c8a5ef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import de.dvdgeisler.iot.dirigera.client.api.model.music.MusicPlayItem;

@JsonInclude(Include.NON_NULL)
public class SpeakerAudioAttributes {
public String serviceType;
public String providerType;
public SpeakerPlayItem playItem;
public SpeakerPlayItem nextPlayItem;
public MusicPlayItem playItem;
public MusicPlayItem nextPlayItem;

public SpeakerAudioAttributes() {
}

public SpeakerAudioAttributes(String serviceType, String providerType, SpeakerPlayItem playItem,
SpeakerPlayItem nextPlayItem) {
public SpeakerAudioAttributes(String serviceType, String providerType, MusicPlayItem playItem,
MusicPlayItem nextPlayItem) {
this.serviceType = serviceType;
this.providerType = providerType;
this.playItem = playItem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
package de.dvdgeisler.iot.dirigera.client.api.model.device.speaker;
package de.dvdgeisler.iot.dirigera.client.api.model.music;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@JsonInclude(Include.NON_NULL)
public class SpeakerPlayItem {
public class MusicPlayItem {
public String title;
public String artist;
public String album;
public String imageUrl;
public Long duration;

public SpeakerPlayItem() {
public MusicPlayItem() {
}

public SpeakerPlayItem(String title, String artist, String album, String imageUrl,
Long duration) {
public MusicPlayItem(String title, String artist, String album, String imageUrl,
Long duration) {
this.title = title;
this.artist = artist;
this.album = album;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package de.dvdgeisler.iot.dirigera.client.api.model.music;

import de.dvdgeisler.iot.dirigera.client.api.model.device.speaker.SpeakerPlayItem;

import java.util.List;

public class MusicPlayList {
public String id;
public List<SpeakerPlayItem> playItems;
public List<MusicPlayItem> playItems;
public String title;

public MusicPlayList(final String id, final List<SpeakerPlayItem> playItems, final String title) {
public MusicPlayList(final String id, final List<MusicPlayItem> playItems, final String title) {
this.id = id;
this.playItems = playItems;
this.title = title;
Expand Down

0 comments on commit 4c8a5ef

Please sign in to comment.