Module tdlight.api

Class TdApi.ChatBoostStatus

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

public static final class TdApi.ChatBoostStatus extends TdApi.Object
Describes current boost status of a chat.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The number of times the chat was boosted.
    static final int
    Identifier uniquely determining type of the object.
    int
    The number of boosts added to reach the current level.
    boolean
    True, if the current user has already boosted the chat.
    int
    Current boost level of the chat.
    int
    The number of boosts needed to reach the next level; 0 if the next level isn't available.
    int
    Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.
    double
    A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Describes current boost status of a chat.
    ChatBoostStatus(boolean isBoosted, int level, int boostCount, int currentLevelBoostCount, int nextLevelBoostCount, int premiumMemberCount, double premiumMemberPercentage)
    Describes current boost status of a chat.
    Describes current boost status of a chat.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Returns an identifier uniquely determining type of the object.
    int
     
    void
    Serialize the TDLib class

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • isBoosted

      public boolean isBoosted
      True, if the current user has already boosted the chat.
    • level

      public int level
      Current boost level of the chat.
    • boostCount

      public int boostCount
      The number of times the chat was boosted.
    • currentLevelBoostCount

      public int currentLevelBoostCount
      The number of boosts added to reach the current level.
    • nextLevelBoostCount

      public int nextLevelBoostCount
      The number of boosts needed to reach the next level; 0 if the next level isn't available.
    • premiumMemberCount

      public int premiumMemberCount
      Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.
    • premiumMemberPercentage

      public double premiumMemberPercentage
      A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.
    • CONSTRUCTOR

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

    • ChatBoostStatus

      public ChatBoostStatus()
      Describes current boost status of a chat.
    • ChatBoostStatus

      public ChatBoostStatus(boolean isBoosted, int level, int boostCount, int currentLevelBoostCount, int nextLevelBoostCount, int premiumMemberCount, double premiumMemberPercentage)
      Describes current boost status of a chat.
      Parameters:
      isBoosted - True, if the current user has already boosted the chat.
      level - Current boost level of the chat.
      boostCount - The number of times the chat was boosted.
      currentLevelBoostCount - The number of boosts added to reach the current level.
      nextLevelBoostCount - The number of boosts needed to reach the next level; 0 if the next level isn't available.
      premiumMemberCount - Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.
      premiumMemberPercentage - A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.
    • ChatBoostStatus

      public ChatBoostStatus(DataInput input) throws IOException
      Describes current boost status of 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