Package com.cta4j.bus.locale
Interface LocalesApi
@NullMarked
public interface LocalesApi
Provides access to locale-related endpoints of the CTA BusTime API.
This API allows retrieval of supported locales for the CTA BusTime services.
-
Method Summary
Modifier and TypeMethodDescriptionlist()Retrieves the supported locales.Retrieves the supported locales, with names displayed in the specified locale.Retrieves the supported locales, with names displayed in their native languages.
-
Method Details
-
list
List<SupportedLocale> list()Retrieves the supported locales.- Returns:
- a
ListofSupportedLocales, or an emptyListif no supported locales are available
-
list
Retrieves the supported locales, with names displayed in the specified locale.- Parameters:
displayLocale- the locale in which to display the names of the supported locales- Returns:
- a
ListofSupportedLocales with names in the specified locale, or an emptyListif no supported locales are available
-
listInNativeLanguage
List<SupportedLocale> listInNativeLanguage()Retrieves the supported locales, with names displayed in their native languages.- Returns:
- a
ListofSupportedLocales with names in their native languages, or an emptyListif no supported locales are available
-