Package com.github.twitch4j
Class TwitchClient
java.lang.Object
com.github.twitch4j.TwitchClient
- All Implemented Interfaces:
ITwitchClient,java.lang.AutoCloseable
public class TwitchClient extends java.lang.Object implements ITwitchClient
-
Constructor Summary
Constructors Constructor Description TwitchClient(com.github.philippheuer.events4j.core.EventManager eventManager, com.github.twitch4j.extensions.TwitchExtensions extensions, com.github.twitch4j.helix.TwitchHelix helix, com.github.twitch4j.kraken.TwitchKraken kraken, com.github.twitch4j.tmi.TwitchMessagingInterface messagingInterface, com.github.twitch4j.chat.TwitchChat chat, com.github.twitch4j.pubsub.TwitchPubSub pubsub, com.github.twitch4j.graphql.TwitchGraphQL graphql, java.util.concurrent.ScheduledThreadPoolExecutor threadPoolExecutor)Constructor -
Method Summary
Modifier and Type Method Description voidclose()Closecom.github.twitch4j.chat.TwitchChatgetChat()Get ChatTwitchClientHelpergetClientHelper()TwitchClientHelpercom.github.philippheuer.events4j.core.EventManagergetEventManager()Get the event managercom.github.twitch4j.extensions.TwitchExtensionsgetExtensions()Get Extensionscom.github.twitch4j.graphql.TwitchGraphQLgetGraphQL()Get GraphQLcom.github.twitch4j.helix.TwitchHelixgetHelix()Get Helixcom.github.twitch4j.kraken.TwitchKrakengetKraken()Deprecated.com.github.twitch4j.tmi.TwitchMessagingInterfacegetMessagingInterface()Get MessagingInterface (API)ModuleLoadergetModuleLoader()Modulescom.github.twitch4j.pubsub.TwitchPubSubgetPubSub()Get PubSubMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TwitchClient
public TwitchClient(com.github.philippheuer.events4j.core.EventManager eventManager, com.github.twitch4j.extensions.TwitchExtensions extensions, com.github.twitch4j.helix.TwitchHelix helix, com.github.twitch4j.kraken.TwitchKraken kraken, com.github.twitch4j.tmi.TwitchMessagingInterface messagingInterface, com.github.twitch4j.chat.TwitchChat chat, com.github.twitch4j.pubsub.TwitchPubSub pubsub, com.github.twitch4j.graphql.TwitchGraphQL graphql, java.util.concurrent.ScheduledThreadPoolExecutor threadPoolExecutor)Constructor- Parameters:
eventManager- EventManagerextensions- TwitchExtensionshelix- TwitchHelixkraken- TwitchKrakenmessagingInterface- TwitchMessagingInterfacechat- TwitchChatpubsub- TwitchPubSubgraphql- TwitchGraphQLthreadPoolExecutor- ScheduledThreadPoolExecutor
-
-
Method Details
-
getEventManager
public com.github.philippheuer.events4j.core.EventManager getEventManager()Get the event manager- Specified by:
getEventManagerin interfaceITwitchClient- Returns:
- EventManager
-
getExtensions
public com.github.twitch4j.extensions.TwitchExtensions getExtensions()Get Extensions- Specified by:
getExtensionsin interfaceITwitchClient- Returns:
- TwitchExtensions
-
getHelix
public com.github.twitch4j.helix.TwitchHelix getHelix()Get Helix- Specified by:
getHelixin interfaceITwitchClient- Returns:
- TwitchHelix
-
getKraken
@Deprecated public com.github.twitch4j.kraken.TwitchKraken getKraken()Deprecated.Get Kraken- Specified by:
getKrakenin interfaceITwitchClient- Returns:
- TwitchKraken
-
getMessagingInterface
@Unofficial public com.github.twitch4j.tmi.TwitchMessagingInterface getMessagingInterface()Get MessagingInterface (API)- Specified by:
getMessagingInterfacein interfaceITwitchClient- Returns:
- TwitchMessagingInterface
-
getChat
public com.github.twitch4j.chat.TwitchChat getChat()Get Chat- Specified by:
getChatin interfaceITwitchClient- Returns:
- TwitchChat
-
getPubSub
public com.github.twitch4j.pubsub.TwitchPubSub getPubSub()Get PubSub- Specified by:
getPubSubin interfaceITwitchClient- Returns:
- TwitchPubSub
-
getGraphQL
@Unofficial public com.github.twitch4j.graphql.TwitchGraphQL getGraphQL()Get GraphQL- Specified by:
getGraphQLin interfaceITwitchClient- Returns:
- TwitchGraphQL
-
close
public void close()Close- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceITwitchClient
-
getModuleLoader
Modules- Specified by:
getModuleLoaderin interfaceITwitchClient- Returns:
- ModuleLoader
-
getClientHelper
TwitchClientHelperA helper method that contains some common use-cases, like follow events / go live event listeners / ...
- Specified by:
getClientHelperin interfaceITwitchClient- Returns:
- TwitchClientHelper
-