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
ConstructorDescriptionResCUVividSeatsClient
(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 TypeMethodDescriptionprotected 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
-
Constructor Details
-
ResCUVividSeatsClient
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 interfaceorg.oxerr.vividseats.client.VividSeatsClient
-
createProxy
-
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
-
createJacksonObjectMapperFactory
protected si.mazi.rescu.serialization.jackson.JacksonObjectMapperFactory createJacksonObjectMapperFactory()
-