public class ChatResource extends AbstractResource
ChatResource provides the functionality
to access the /chat endpoints of the Twitch API.AbstractResource.TwitchHttpResponseHandlerhttp, objectMapper| Constructor and Description |
|---|
ChatResource(java.lang.String baseUrl,
int apiVersion)
Construct the resource using the Twitch API base URL and specified API version.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getBadges(java.lang.String channel,
BadgesResponseHandler handler)
Returns a list of chat badges that can be used in the specified channel's chat.
|
void |
getEmoticons(EmoticonsResponseHandler handler)
Returns a list of all emoticon objects.
|
getBaseUrl, setAuthAccessToken, setClientIdpublic ChatResource(java.lang.String baseUrl,
int apiVersion)
baseUrl - the base URL of the Twitch APIapiVersion - the requested version of the Twitch APIpublic void getEmoticons(EmoticonsResponseHandler handler)
handler - the Response Handlerpublic void getBadges(java.lang.String channel,
BadgesResponseHandler handler)
channel - the name of the channelhandler - the Response Handler