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
    CommandFollowUser followUser​(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, java.lang.Long targetUserId, java.lang.Boolean goLiveNotification)
    Follow a user
    CommandUnfollowUser unfollowUser​(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, java.lang.Long targetUserId)
    Unfollow a user

    Methods 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 Manager
      clientId - Client Id
      clientSecret - Client Secret
      proxyConfig - 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 - Credential
      targetUserId - target user, that the user the auth token was provided for will follow
      goLiveNotification - 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 - Credential
      targetUserId - target user, that the user the auth token was provided for will follow
      Returns:
      CommandUnfollowUser