Class TwitchGraphQLBuilder

java.lang.Object
com.github.twitch4j.graphql.TwitchGraphQLBuilder

@Unofficial public class TwitchGraphQLBuilder extends Object
Twitch GraphQL Builder

This 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.

  • Method Details

    • builder

      public static TwitchGraphQLBuilder builder()
      Initialize the builder
      Returns:
      Twitch GraphQL Builder
    • build

      public TwitchGraphQL build()
      Twitch API Client (GraphQL)
      Returns:
      TwitchGraphQL
    • getEventManager

      public com.github.philippheuer.events4j.core.EventManager getEventManager()
      Event Manager
    • getDefaultEventHandler

      public Class<? extends com.github.philippheuer.events4j.api.service.IEventHandler> getDefaultEventHandler()
      EventManager
    • getProxyConfig

      public ProxyConfig getProxyConfig()
      Proxy Configuration
    • getClientId

      public String getClientId()
      Client Id
    • getClientSecret

      public String getClientSecret()
      Client Secret
    • getDefaultFirstPartyToken

      public com.github.philippheuer.credentialmanager.domain.OAuth2Credential getDefaultFirstPartyToken()
      Default First-Party OAuth Token
    • isEnableBatching

      public boolean isEnableBatching()
      Whether GraphQL Queries should be batched
    • getTimeout

      public Integer getTimeout()
      Default Timeout
    • getUserAgent

      public String getUserAgent()
      User Agent
    • getHeaders

      public Map<String,String> getHeaders()
      Additional headers to be applied to each outbound request
    • getBaseUrl

      public String getBaseUrl()
      BaseUrl
    • withEventManager

      public TwitchGraphQLBuilder withEventManager(com.github.philippheuer.events4j.core.EventManager eventManager)
      Event Manager
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDefaultEventHandler

      public TwitchGraphQLBuilder withDefaultEventHandler(Class<? extends com.github.philippheuer.events4j.api.service.IEventHandler> defaultEventHandler)
      EventManager
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withProxyConfig

      public TwitchGraphQLBuilder withProxyConfig(ProxyConfig proxyConfig)
      Proxy Configuration
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withClientId

      public TwitchGraphQLBuilder withClientId(String clientId)
      Client Id
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withClientSecret

      @Deprecated public TwitchGraphQLBuilder withClientSecret(String clientSecret)
      Deprecated.
      Client Secret
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDefaultFirstPartyToken

      public TwitchGraphQLBuilder withDefaultFirstPartyToken(com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultFirstPartyToken)
      Default First-Party OAuth Token
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withEnableBatching

      public TwitchGraphQLBuilder withEnableBatching(boolean enableBatching)
      Whether GraphQL Queries should be batched
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTimeout

      public TwitchGraphQLBuilder withTimeout(Integer timeout)
      Default Timeout
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withUserAgent

      public TwitchGraphQLBuilder withUserAgent(String userAgent)
      User Agent
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withHeaders

      public TwitchGraphQLBuilder withHeaders(Map<String,String> headers)
      Additional headers to be applied to each outbound request
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).