Class RequestLocalization

  • All Implemented Interfaces:

    @JsonClass(generateAdapter = true) 
    public final class RequestLocalization
    
                        

    Localization settings

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getTimezone() A valid timezone id supported by @see java.time.
      final Unit setTimezone(@Json(name = "timezone") String timezone) A valid timezone id supported by @see java.time.
      final List<String> getLocales() A list of Locales definied by IETF BCP 47.
      final Unit setLocales(@Json(name = "locales") List<String> locales) A list of Locales definied by IETF BCP 47.
      • Methods inherited from class java.lang.Object

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

      • RequestLocalization

        RequestLocalization(String timezone, List<String> locales)
    • Method Detail

      • getTimezone

         final String getTimezone()

        A valid timezone id supported by @see java.time.ZoneId

      • setTimezone

         final Unit setTimezone(@Json(name = "timezone") String timezone)

        A valid timezone id supported by @see java.time.ZoneId

      • getLocales

         final List<String> getLocales()

        A list of Locales definied by IETF BCP 47. The ordering is significant. The first locale (leftmost) is used for sort and query localization, whereas the remaining locales are used for query only.

      • setLocales

         final Unit setLocales(@Json(name = "locales") List<String> locales)

        A list of Locales definied by IETF BCP 47. The ordering is significant. The first locale (leftmost) is used for sort and query localization, whereas the remaining locales are used for query only.