Skip to content

Commit

Permalink
docs: update soundtrack api javadoc by twitch revision (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed Feb 14, 2022
1 parent 4f56b4d commit 8c18d85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Expand Up @@ -586,7 +586,7 @@ HystrixCommand<CategorySearchList> searchCategories(
* Gets channel information for users
*
* @param authToken Auth Token
* @param broadcasterIds IDs of the channels to be retrieved
* @param broadcasterIds IDs of the channels to be retrieved (up to 100)
* @return ChannelInformationList
*/
@RequestLine("GET /channels?broadcaster_id={broadcaster_id}")
Expand Down Expand Up @@ -637,6 +637,8 @@ HystrixCommand<ChannelSearchList> searchChannels(

/**
* Gets the Soundtrack track that the broadcaster is playing.
* <p>
* If the broadcaster is not playing a track, the endpoint returns HTTP status code 404 Not Found.
*
* @param authToken App access token or User access token.
* @param broadcasterId The ID of the broadcaster that’s playing a Soundtrack track.
Expand Down
Expand Up @@ -3,17 +3,15 @@
import lombok.AccessLevel;
import lombok.Data;
import lombok.Setter;
import org.jetbrains.annotations.Nullable;

@Data
@Setter(AccessLevel.PRIVATE)
public class SoundtrackArtist {

/**
* The ID of the Twitch user that created the track.
* Is null if a Twitch user didn't create the track.
* Is an empty string if a Twitch user didn't create the track.
*/
@Nullable
private String creatorChannelId;

/**
Expand Down
Expand Up @@ -13,12 +13,11 @@ public class SoundtrackCurrentTrackWrapper {

/**
* A list that contains the Soundtrack track that the broadcaster is playing.
* The list is empty if the broadcaster is not playing a track.
*/
private List<SoundtrackCurrentTrack> data;

/**
* @return the Soundtrack track that the broadcaster is playing or empty if the broadcaster is not playing a track.
* @return the Soundtrack track that the broadcaster is playing.
*/
public Optional<SoundtrackCurrentTrack> getTrack() {
if (data == null || data.isEmpty())
Expand Down

0 comments on commit 8c18d85

Please sign in to comment.