Package com.github.twitch4j
Class TwitchClient
java.lang.Object
com.github.twitch4j.TwitchClient
- All Implemented Interfaces:
ITwitchClient
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionTwitchClient
(com.github.philippheuer.events4j.core.EventManager eventManager, TwitchExtensions extensions, TwitchHelix helix, TwitchKraken kraken, TwitchMessagingInterface messagingInterface, TwitchChat chat, TwitchPubSub pubsub, TwitchGraphQL graphql, IEventSubSocket eventSocket, ScheduledThreadPoolExecutor threadPoolExecutor, com.github.philippheuer.credentialmanager.CredentialManager credentialManager, com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultAuthToken) Constructor -
Method Summary
-
Constructor Details
-
TwitchClient
@Internal public TwitchClient(com.github.philippheuer.events4j.core.EventManager eventManager, TwitchExtensions extensions, TwitchHelix helix, TwitchKraken kraken, TwitchMessagingInterface messagingInterface, TwitchChat chat, TwitchPubSub pubsub, TwitchGraphQL graphql, IEventSubSocket eventSocket, ScheduledThreadPoolExecutor threadPoolExecutor, com.github.philippheuer.credentialmanager.CredentialManager credentialManager, com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultAuthToken) Constructor- Parameters:
eventManager
- EventManagerextensions
- TwitchExtensionshelix
- TwitchHelixkraken
- TwitchKrakenmessagingInterface
- TwitchMessagingInterfacechat
- TwitchChatpubsub
- TwitchPubSubgraphql
- TwitchGraphQLeventSocket
- Twitch EventSub over WebsocketthreadPoolExecutor
- ScheduledThreadPoolExecutorcredentialManager
- CredentialManagerdefaultAuthToken
- OAuth2Credential
-
-
Method Details
-
getEventManager
public com.github.philippheuer.events4j.core.EventManager getEventManager()Get the event manager- Specified by:
getEventManager
in interfaceITwitchClient
- Returns:
- EventManager
-
getExtensions
Deprecated.Get Extensions- Specified by:
getExtensions
in interfaceITwitchClient
- Returns:
- TwitchExtensions
-
getHelix
Get Helix- Specified by:
getHelix
in interfaceITwitchClient
- Returns:
- TwitchHelix
-
getKraken
Deprecated.Get Kraken- Specified by:
getKraken
in interfaceITwitchClient
- Returns:
- TwitchKraken
-
getMessagingInterface
Get MessagingInterface (API)- Specified by:
getMessagingInterface
in interfaceITwitchClient
- Returns:
- TwitchMessagingInterface
-
getChat
Get Chat- Specified by:
getChat
in interfaceITwitchClient
- Returns:
- TwitchChat
-
getEventSocket
Get EventSocket- Specified by:
getEventSocket
in interfaceITwitchClient
- Returns:
- IEventSubSocket
-
getPubSub
Get PubSub- Specified by:
getPubSub
in interfaceITwitchClient
- Returns:
- TwitchPubSub
-
getGraphQL
Description copied from interface:ITwitchClient
Get GraphQLThis is an unofficial API that is not intended for third-party use. Use at your own risk. Methods could change or stop working at any time.
- Specified by:
getGraphQL
in interfaceITwitchClient
- Returns:
- TwitchGraphQL
-
close
public void close()Close- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceITwitchClient
-
getModuleLoader
Modules- Specified by:
getModuleLoader
in interfaceITwitchClient
- Returns:
- ModuleLoader
-
getClientHelper
TwitchClientHelperA helper method that contains some common use-cases, like follow events / go live event listeners / ...
- Specified by:
getClientHelper
in interfaceITwitchClient
- Returns:
- TwitchClientHelper
-