Package org.drinkless.tdlib
Class TdApi.AcceptedGiftTypes
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.AcceptedGiftTypes
- Enclosing class:
- TdApi
Describes gift types that are accepted by a user.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsConstructorDescriptionDescribes 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 TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
unlimitedGifts
public boolean unlimitedGiftsTrue, if unlimited regular gifts are accepted. -
limitedGifts
public boolean limitedGiftsTrue, if limited regular gifts are accepted. -
upgradedGifts
public boolean upgradedGiftsTrue, if upgraded gifts and regular gifts that can be upgraded for free are accepted. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-