Module tdlight.api

Class TdApi.PremiumFeatures

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

public static final class TdApi.PremiumFeatures extends TdApi.Object
Contains information about features, available to Premium users.
  • Field Details

    • features

      public TdApi.PremiumFeature[] features
      The list of available features.
    • limits

      public TdApi.PremiumLimit[] limits
      The list of limits, increased for Premium users.
    • CONSTRUCTOR

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

    • PremiumFeatures

      public PremiumFeatures()
      Contains information about features, available to Premium users.
    • PremiumFeatures

      public PremiumFeatures(TdApi.PremiumFeature[] features, TdApi.PremiumLimit[] limits, TdApi.InternalLinkType paymentLink)
      Contains information about features, available to Premium users.
      Parameters:
      features - The list of available features.
      limits - The list of limits, increased for Premium users.
      paymentLink - An internal link to be opened to pay for Telegram Premium if store payment isn't possible; may be null if direct payment isn't available.
    • PremiumFeatures

      public PremiumFeatures(DataInput input) throws IOException
      Contains information about features, available to Premium users.
      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