Package com.github.twitch4j.graphql
Class TwitchGraphQL
java.lang.Object
com.github.twitch4j.graphql.TwitchGraphQL
public class TwitchGraphQL
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description TwitchGraphQL(com.github.philippheuer.events4j.core.EventManager eventManager, java.lang.String clientId, java.lang.String clientSecret, com.github.twitch4j.common.config.ProxyConfig proxyConfig)Constructor -
Method Summary
Modifier and Type Method Description CommandFollowUserfollowUser(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, java.lang.Long targetUserId, java.lang.Boolean goLiveNotification)Follow a userCommandUnfollowUserunfollowUser(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, java.lang.Long targetUserId)Unfollow a userMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TwitchGraphQL
public TwitchGraphQL(com.github.philippheuer.events4j.core.EventManager eventManager, java.lang.String clientId, java.lang.String clientSecret, com.github.twitch4j.common.config.ProxyConfig proxyConfig)Constructor- Parameters:
eventManager- Event ManagerclientId- Client IdclientSecret- Client SecretproxyConfig- Proxy Config
-
-
Method Details
-
followUser
public CommandFollowUser followUser(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, java.lang.Long targetUserId, java.lang.Boolean goLiveNotification)Follow a user- Parameters:
auth- CredentialtargetUserId- target user, that the user the auth token was provided for will followgoLiveNotification- should the follower be notified every time a streamer goes live?- Returns:
- CommandFollowUser
-
unfollowUser
public CommandUnfollowUser unfollowUser(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, java.lang.Long targetUserId)Unfollow a user- Parameters:
auth- CredentialtargetUserId- target user, that the user the auth token was provided for will follow- Returns:
- CommandUnfollowUser
-