interface LocaleAPI : BaseAPI
The interface for the Locale API.
abstract val owner: Ripe
The Ripe instance that is using the API. |
open fun localeAsync(value: String, locale: String, options: Map<String, Any>): Deferred<Map<String, Any>?>
Localizes a value to the provided locale. |
|
open fun localeMultipleAsync(values: List<String>, locale: String, options: Map<String, Any>): Deferred<Map<String, Any>?>
Localizes a list of values to the provided locale. |
open fun getImageUrl(options: Map<String, Any> = HashMap()): String
Returns the url of a composition for the current configuration. |
|
open fun getPriceAsync(options: Map<String, Any> = HashMap()): Deferred<Map<String, Any>?>
Retrieves the price for current configuration. Returns a Deferred object that will be completed asynchronously. |
|
open fun getUrl(): String
Helper method that retrieves the base API URL from the owner's options. |
class RipeAPI : BaseAPI, BrandAPI, BuildAPI, LocaleAPI, SizeAPI
The API class to be instantiated. Implements all the API interfaces. |