diff --git a/rest-helix/src/main/java/com/github/twitch4j/helix/TwitchHelix.java b/rest-helix/src/main/java/com/github/twitch4j/helix/TwitchHelix.java index 43a1a919e..8b902e7b6 100644 --- a/rest-helix/src/main/java/com/github/twitch4j/helix/TwitchHelix.java +++ b/rest-helix/src/main/java/com/github/twitch4j/helix/TwitchHelix.java @@ -586,7 +586,7 @@ HystrixCommand 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}") @@ -637,6 +637,8 @@ HystrixCommand searchChannels( /** * Gets the Soundtrack track that the broadcaster is playing. + *

+ * 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. diff --git a/rest-helix/src/main/java/com/github/twitch4j/helix/domain/SoundtrackArtist.java b/rest-helix/src/main/java/com/github/twitch4j/helix/domain/SoundtrackArtist.java index 45c84f5bc..f050d49ea 100644 --- a/rest-helix/src/main/java/com/github/twitch4j/helix/domain/SoundtrackArtist.java +++ b/rest-helix/src/main/java/com/github/twitch4j/helix/domain/SoundtrackArtist.java @@ -3,7 +3,6 @@ import lombok.AccessLevel; import lombok.Data; import lombok.Setter; -import org.jetbrains.annotations.Nullable; @Data @Setter(AccessLevel.PRIVATE) @@ -11,9 +10,8 @@ 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; /** diff --git a/rest-helix/src/main/java/com/github/twitch4j/helix/domain/SoundtrackCurrentTrackWrapper.java b/rest-helix/src/main/java/com/github/twitch4j/helix/domain/SoundtrackCurrentTrackWrapper.java index f138adf5b..54d53ed40 100644 --- a/rest-helix/src/main/java/com/github/twitch4j/helix/domain/SoundtrackCurrentTrackWrapper.java +++ b/rest-helix/src/main/java/com/github/twitch4j/helix/domain/SoundtrackCurrentTrackWrapper.java @@ -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 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 getTrack() { if (data == null || data.isEmpty())