VideoMessageAdvertisement class final
Describes an advertisement to be shown while a video from a message is watched
Constructors
- VideoMessageAdvertisement({required int uniqueId, required String text, required int minDisplayDuration, required int maxDisplayDuration, required bool canBeReported, required AdvertisementSponsor sponsor, required String title, required String additionalInfo})
-
Describes an advertisement to be shown while a video from a message is watched
const
-
VideoMessageAdvertisement.fromJson(Map<
String, dynamic> json) -
Parses a VideoMessageAdvertisement from TDLib JSON.
factory
Properties
- additionalInfo → String
-
If non-empty, additional information about the sponsored message to be shown along with the message
final
- canBeReported → bool
-
True, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement
final
- 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
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxDisplayDuration → int
-
The maximum amount of time the advertisement must be displayed before it must be automatically hidden, in seconds
final
- minDisplayDuration → int
-
The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sponsor → AdvertisementSponsor
-
Information about the sponsor of the advertisement
final
- text → String
-
Text of the advertisement
final
- title → String
-
Title of the sponsored message
final
- uniqueId → int
-
Unique identifier of this result
final
Methods
-
copyWith(
{int? uniqueId, String? text, int? minDisplayDuration, int? maxDisplayDuration, bool? canBeReported, AdvertisementSponsor? sponsor, String? title, String? additionalInfo}) → VideoMessageAdvertisement -
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.