Module tdlight.api

Class TdApi.LanguagePackStringValuePluralized

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.LanguagePackStringValue
it.tdlight.jni.TdApi.LanguagePackStringValuePluralized
Enclosing class:
TdApi

public static final class TdApi.LanguagePackStringValuePluralized extends TdApi.LanguagePackStringValue
A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.
  • Field Details

    • zeroValue

      public String zeroValue
      Value for zero objects.
    • oneValue

      public String oneValue
      Value for one object.
    • twoValue

      public String twoValue
      Value for two objects.
    • fewValue

      public String fewValue
      Value for few objects.
    • manyValue

      public String manyValue
      Value for many objects.
    • otherValue

      public String otherValue
      Default value.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • LanguagePackStringValuePluralized

      public LanguagePackStringValuePluralized()
      A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.
    • LanguagePackStringValuePluralized

      public LanguagePackStringValuePluralized(String zeroValue, String oneValue, String twoValue, String fewValue, String manyValue, String otherValue)
      A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.
      Parameters:
      zeroValue - Value for zero objects.
      oneValue - Value for one object.
      twoValue - Value for two objects.
      fewValue - Value for few objects.
      manyValue - Value for many objects.
      otherValue - Default value.
    • LanguagePackStringValuePluralized

      public LanguagePackStringValuePluralized(DataInput input) throws IOException
      A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object