Skip to content

Commit

Permalink
Add speaker playback state
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdgeisler committed Nov 28, 2022
1 parent 7e37dfe commit 584b7fa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package de.dvdgeisler.iot.dirigera.client.api.model.device.speaker;

import com.fasterxml.jackson.annotation.JsonProperty;

public enum SpeakerPlaybackState {
@JsonProperty("playbackIdle")
IDLE,
@JsonProperty("playbackPlaying")
PLAYING,
@JsonProperty("playbackPaused")
PAUSED,
@JsonProperty("playbackNext")
NEXT,
@JsonProperty("playbackPrevious")
PREVIOUS,
@JsonProperty("playbackBuffering")
BUFFERING
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@JsonInclude(JsonInclude.Include.NON_NULL)
public class SpeakerStateAttributes extends DeviceStateAttributes {
public String playback;
public SpeakerPlaybackState playback;
public LocalDateTime playbackLastChangedTimestamp;
public SpeakerAudioAttributes playbackAudio;
public SpeakerPlaybackPosition playbackPosition;
Expand Down

0 comments on commit 584b7fa

Please sign in to comment.