com.github.twitch4j.helix.domain.SoundtrackCurrentTrackWrapper Maven / Gradle / Ivy
package com.github.twitch4j.helix.domain;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Setter;
import java.util.List;
import java.util.Optional;
/**
* @deprecated Twitch is decommissioning Soundtrack on 2023-07-17
*/
@Data
@Setter(AccessLevel.PRIVATE)
@Deprecated
public class SoundtrackCurrentTrackWrapper {
/**
* A list that contains the Soundtrack track that the broadcaster is playing.
*/
private List data;
/**
* @return the Soundtrack track that the broadcaster is playing.
*/
public Optional getTrack() {
if (data == null || data.isEmpty())
return Optional.empty();
return Optional.ofNullable(data.get(0));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy