Class TdApi.AcceptedGiftTypes

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

public static class TdApi.AcceptedGiftTypes extends TdApi.Object
Describes gift types that are accepted by a user.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    boolean
    True, if limited regular gifts are accepted.
    boolean
    True, if Telegram Premium subscription is accepted.
    boolean
    True, if unlimited regular gifts are accepted.
    boolean
    True, if upgraded gifts and regular gifts that can be upgraded for free are accepted.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Describes gift types that are accepted by a user.
    AcceptedGiftTypes(boolean unlimitedGifts, boolean limitedGifts, boolean upgradedGifts, boolean premiumSubscription)
    Describes gift types that are accepted by a user.
  • 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

    • unlimitedGifts

      public boolean unlimitedGifts
      True, if unlimited regular gifts are accepted.
    • limitedGifts

      public boolean limitedGifts
      True, if limited regular gifts are accepted.
    • upgradedGifts

      public boolean upgradedGifts
      True, if upgraded gifts and regular gifts that can be upgraded for free are accepted.
    • premiumSubscription

      public boolean premiumSubscription
      True, if Telegram Premium subscription is accepted.
    • CONSTRUCTOR

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

    • AcceptedGiftTypes

      public AcceptedGiftTypes()
      Describes gift types that are accepted by a user.
    • AcceptedGiftTypes

      public AcceptedGiftTypes(boolean unlimitedGifts, boolean limitedGifts, boolean upgradedGifts, boolean premiumSubscription)
      Describes gift types that are accepted by a user.
      Parameters:
      unlimitedGifts - True, if unlimited regular gifts are accepted.
      limitedGifts - True, if limited regular gifts are accepted.
      upgradedGifts - True, if upgraded gifts and regular gifts that can be upgraded for free are accepted.
      premiumSubscription - True, if Telegram Premium subscription is accepted.
  • 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