Class TdApi.GiftPurchaseLimits

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.GiftPurchaseLimits
Enclosing class:
TdApi

public static class TdApi.GiftPurchaseLimits extends TdApi.Object
Describes the maximum number of times that a specific gift can be purchased.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    int
    Number of remaining times the gift can be purchased.
    int
    The maximum number of times the gifts can be purchased.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Describes the maximum number of times that a specific gift can be purchased.
    GiftPurchaseLimits(int totalCount, int remainingCount)
    Describes the maximum number of times that a specific gift can be purchased.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

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

    • totalCount

      public int totalCount
      The maximum number of times the gifts can be purchased.
    • remainingCount

      public int remainingCount
      Number of remaining times the gift can be purchased.
    • CONSTRUCTOR

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

    • GiftPurchaseLimits

      public GiftPurchaseLimits()
      Describes the maximum number of times that a specific gift can be purchased.
    • GiftPurchaseLimits

      public GiftPurchaseLimits(int totalCount, int remainingCount)
      Describes the maximum number of times that a specific gift can be purchased.
      Parameters:
      totalCount - The maximum number of times the gifts can be purchased.
      remainingCount - Number of remaining times the gift can be purchased.
  • 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