Module tdlight.api

Class TdApi.ShippingOption

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ShippingOption
Enclosing class:
TdApi

public static final class TdApi.ShippingOption extends TdApi.Object
One shipping option.
  • Field Details

    • id

      public String id
      Shipping option identifier.
    • title

      public String title
      Option title.
    • priceParts

      public TdApi.LabeledPricePart[] priceParts
      A list of objects used to calculate the total shipping costs.
    • CONSTRUCTOR

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

    • ShippingOption

      public ShippingOption()
      One shipping option.
    • ShippingOption

      public ShippingOption(String id, String title, TdApi.LabeledPricePart[] priceParts)
      One shipping option.
      Parameters:
      id - Shipping option identifier.
      title - Option title.
      priceParts - A list of objects used to calculate the total shipping costs.
    • ShippingOption

      public ShippingOption(DataInput input) throws IOException
      One shipping option.
      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