Module tdlight.api

Class TdApi.ChatBoost

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

public static final class TdApi.ChatBoost extends TdApi.Object
Describes a boost applied to a chat.
  • Field Details

    • id

      public String id
      Unique identifier of the boost.
    • count

      public int count
      The number of identical boosts applied.
    • source

      public TdApi.ChatBoostSource source
      Source of the boost.
    • startDate

      public int startDate
      Point in time (Unix timestamp) when the chat was boosted.
    • expirationDate

      public int expirationDate
      Point in time (Unix timestamp) when the boost will expire.
    • CONSTRUCTOR

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

    • ChatBoost

      public ChatBoost()
      Describes a boost applied to a chat.
    • ChatBoost

      public ChatBoost(String id, int count, TdApi.ChatBoostSource source, int startDate, int expirationDate)
      Describes a boost applied to a chat.
      Parameters:
      id - Unique identifier of the boost.
      count - The number of identical boosts applied.
      source - Source of the boost.
      startDate - Point in time (Unix timestamp) when the chat was boosted.
      expirationDate - Point in time (Unix timestamp) when the boost will expire.
    • ChatBoost

      public ChatBoost(DataInput input) throws IOException
      Describes a boost applied to a chat.
      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