Class ResCUVividSeatsClient

java.lang.Object
org.oxerr.vividseats.client.rescu.impl.ResCUVividSeatsClient
All Implemented Interfaces:
org.oxerr.vividseats.client.VividSeatsClient

public class ResCUVividSeatsClient extends Object implements org.oxerr.vividseats.client.VividSeatsClient
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResCUVividSeatsClient(String token, io.github.poshjosh.ratelimiter.store.BandwidthsStore<String> bandwidthsStore, si.mazi.rescu.Interceptor... interceptors)
    Constructs a client with the specified token.
    ResCUVividSeatsClient(String baseUrl, String token, io.github.poshjosh.ratelimiter.store.BandwidthsStore<String> bandwidthsStore, si.mazi.rescu.Interceptor... interceptors)
    Constructs a client with the specified base URL, token and bandwidths store.
    ResCUVividSeatsClient(String baseUrl, String token, si.mazi.rescu.Interceptor... interceptors)
    Constructs a client with the specified base URL and token.
    ResCUVividSeatsClient(String baseUrl, Supplier<String> tokenSupplier, io.github.poshjosh.ratelimiter.store.BandwidthsStore<String> bandwidthsStore, si.mazi.rescu.Interceptor... interceptors)
    Constructs a client with the specified base URL, token supplier, bandwidths store and interceptors.
    ResCUVividSeatsClient(String baseUrl, Supplier<String> tokenSupplier, si.mazi.rescu.Interceptor... interceptors)
    Constructs a client with the specified base URL and token.
    ResCUVividSeatsClient(String token, si.mazi.rescu.Interceptor... interceptors)
    Constructs a client with the specified token.
    ResCUVividSeatsClient(Supplier<String> tokenSupplier, io.github.poshjosh.ratelimiter.store.BandwidthsStore<String> bandwidthsStore, si.mazi.rescu.Interceptor... interceptors)
    Constructs a client with the specified token.
    ResCUVividSeatsClient(Supplier<String> tokenSupplier, si.mazi.rescu.Interceptor... interceptors)
    Constructs a client with the specified token.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected si.mazi.rescu.ClientConfig
    createClientConfig(si.mazi.rescu.serialization.jackson.JacksonObjectMapperFactory jacksonObjectMapperFactory, Supplier<String> tokenSupplier)
     
    protected si.mazi.rescu.ClientConfig
    createClientConfigV1(si.mazi.rescu.serialization.jackson.JacksonObjectMapperFactory jacksonObjectMapperFactory)
     
    protected si.mazi.rescu.serialization.jackson.JacksonObjectMapperFactory
     
    protected <I> I
    createProxy(Class<I> restInterface, si.mazi.rescu.ClientConfig clientConfig, io.github.poshjosh.ratelimiter.store.BandwidthsStore<String> bandwidthsStore, si.mazi.rescu.Interceptor... interceptors)
     
    protected <I> I
    createProxy(Class<I> restInterface, si.mazi.rescu.ClientConfig clientConfig, si.mazi.rescu.Interceptor... interceptors)
     
    org.oxerr.vividseats.client.inventory.ListingService
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResCUVividSeatsClient

      public ResCUVividSeatsClient(String token, si.mazi.rescu.Interceptor... interceptors)
      Constructs a client with the specified token.
      Parameters:
      token - the token to access the API.
      interceptors - the interceptors to intercept the requests.
    • ResCUVividSeatsClient

      public ResCUVividSeatsClient(String token, io.github.poshjosh.ratelimiter.store.BandwidthsStore<String> bandwidthsStore, si.mazi.rescu.Interceptor... interceptors)
      Constructs a client with the specified token.
      Parameters:
      token - the token to access the API.
      bandwidthsStore - the bandwidths store to store the bandwidth.
      interceptors - the interceptors to intercept the requests.
    • ResCUVividSeatsClient

      public ResCUVividSeatsClient(Supplier<String> tokenSupplier, si.mazi.rescu.Interceptor... interceptors)
      Constructs a client with the specified token.
      Parameters:
      tokenSupplier - the token supplier to access the API.
      interceptors - the interceptors to intercept the requests.
    • ResCUVividSeatsClient

      public ResCUVividSeatsClient(Supplier<String> tokenSupplier, io.github.poshjosh.ratelimiter.store.BandwidthsStore<String> bandwidthsStore, si.mazi.rescu.Interceptor... interceptors)
      Constructs a client with the specified token.
      Parameters:
      tokenSupplier - the token supplier to access the API.
      bandwidthsStore - the bandwidths store to store the bandwidth.
      interceptors - the interceptors to intercept the requests.
    • ResCUVividSeatsClient

      public ResCUVividSeatsClient(String baseUrl, String token, si.mazi.rescu.Interceptor... interceptors)
      Constructs a client with the specified base URL and token.
      Parameters:
      baseUrl - the base URL of the API.
      token - the token to access the API.
      interceptors - the interceptors to intercept the requests.
    • ResCUVividSeatsClient

      public ResCUVividSeatsClient(String baseUrl, Supplier<String> tokenSupplier, si.mazi.rescu.Interceptor... interceptors)
      Constructs a client with the specified base URL and token.
      Parameters:
      baseUrl - the base URL of the API.
      tokenSupplier - the token supplier to access the API.
      interceptors - the interceptors to intercept the requests.
    • ResCUVividSeatsClient

      public ResCUVividSeatsClient(String baseUrl, String token, io.github.poshjosh.ratelimiter.store.BandwidthsStore<String> bandwidthsStore, si.mazi.rescu.Interceptor... interceptors)
      Constructs a client with the specified base URL, token and bandwidths store.
      Parameters:
      baseUrl - the base URL of the API.
      token - the token to access the API.
      bandwidthsStore - the bandwidths store to store the bandwidth.
      interceptors - the interceptors to intercept the requests.
    • ResCUVividSeatsClient

      public ResCUVividSeatsClient(String baseUrl, Supplier<String> tokenSupplier, io.github.poshjosh.ratelimiter.store.BandwidthsStore<String> bandwidthsStore, si.mazi.rescu.Interceptor... interceptors)
      Constructs a client with the specified base URL, token supplier, bandwidths store and interceptors.
      Parameters:
      baseUrl - the base URL of the API.
      tokenSupplier - the token supplier to access the API.
      bandwidthsStore - the bandwidths store to store the bandwidth.
      interceptors - the interceptors to intercept the requests.
  • Method Details

    • getListingService

      public org.oxerr.vividseats.client.inventory.ListingService getListingService()
      Specified by:
      getListingService in interface org.oxerr.vividseats.client.VividSeatsClient
    • createProxy

      protected <I> I createProxy(Class<I> restInterface, si.mazi.rescu.ClientConfig clientConfig, io.github.poshjosh.ratelimiter.store.BandwidthsStore<String> bandwidthsStore, si.mazi.rescu.Interceptor... interceptors)
    • createProxy

      protected <I> I createProxy(Class<I> restInterface, si.mazi.rescu.ClientConfig clientConfig, si.mazi.rescu.Interceptor... interceptors)
    • createClientConfigV1

      protected si.mazi.rescu.ClientConfig createClientConfigV1(si.mazi.rescu.serialization.jackson.JacksonObjectMapperFactory jacksonObjectMapperFactory)
    • createClientConfig

      protected si.mazi.rescu.ClientConfig createClientConfig(si.mazi.rescu.serialization.jackson.JacksonObjectMapperFactory jacksonObjectMapperFactory, Supplier<String> tokenSupplier)
    • createJacksonObjectMapperFactory

      protected si.mazi.rescu.serialization.jackson.JacksonObjectMapperFactory createJacksonObjectMapperFactory()