Package com.chrt.api.resources.utils
Class UtilsClient
- java.lang.Object
-
- com.chrt.api.resources.utils.UtilsClient
-
public class UtilsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<DevClient>devClientprotected java.util.function.Supplier<RootClient>rootClient
-
Constructor Summary
Constructors Constructor Description UtilsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DevClientdev()TimezoneResponsegetTimezoneV1(UtilsGetTimezoneV1Request request)Returns the IANA timezone identifier (e.g., 'America/Los_Angeles') for the given latitude and longitude coordinates.TimezoneResponsegetTimezoneV1(UtilsGetTimezoneV1Request request, RequestOptions requestOptions)Returns the IANA timezone identifier (e.g., 'America/Los_Angeles') for the given latitude and longitude coordinates.RootClientroot()RawUtilsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
devClient
protected final java.util.function.Supplier<DevClient> devClient
-
rootClient
protected final java.util.function.Supplier<RootClient> rootClient
-
-
Constructor Detail
-
UtilsClient
public UtilsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawUtilsClient withRawResponse()
Get responses with HTTP metadata like headers
-
getTimezoneV1
public TimezoneResponse getTimezoneV1(UtilsGetTimezoneV1Request request)
Returns the IANA timezone identifier (e.g., 'America/Los_Angeles') for the given latitude and longitude coordinates. Falls back to closest timezone if the point is in the ocean or at an edge. | () -> (TimezoneResponse)
-
getTimezoneV1
public TimezoneResponse getTimezoneV1(UtilsGetTimezoneV1Request request, RequestOptions requestOptions)
Returns the IANA timezone identifier (e.g., 'America/Los_Angeles') for the given latitude and longitude coordinates. Falls back to closest timezone if the point is in the ocean or at an edge. | () -> (TimezoneResponse)
-
dev
public DevClient dev()
-
root
public RootClient root()
-
-