AcceptedGiftTypes class final
Describes gift types that are accepted by a user
Constructors
- AcceptedGiftTypes({required bool unlimitedGifts, required bool limitedGifts, required bool upgradedGifts, required bool giftsFromChannels, })
-
Describes gift types that are accepted by a user
const
-
AcceptedGiftTypes.fromJson(Map<
String, dynamic> json) -
Parses a AcceptedGiftTypes from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- giftsFromChannels → bool
-
True, if gifts from channels are accepted subject to other restrictions
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- limitedGifts → bool
-
True, if limited regular gifts are accepted
final
-
True, if Telegram Premium subscription is accepted
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unlimitedGifts → bool
-
True, if unlimited regular gifts are accepted
final
- upgradedGifts → bool
-
True, if upgraded gifts and regular gifts that can be upgraded for free are accepted
final
Methods
-
copyWith(
{bool? unlimitedGifts, bool? limitedGifts, bool? upgradedGifts, bool? giftsFromChannels, }) → AcceptedGiftTypes -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.