MessageGroupCall class final

A message with information about a group call not bound to a chat. If the message is incoming, the call isn't active, isn't missed, and has no duration, and getOption("can_accept_calls") is true, then incoming call screen must be shown to the user. Use getGroupCallParticipants to show current group call participants on the screen. Use joinGroupCall to accept the call or declineGroupCallInvitation to decline it. If the call becomes active or missed, then the call screen must be hidden

Inheritance

Constructors

MessageGroupCall({required int uniqueId, required bool isActive, required bool wasMissed, required bool isVideo, required int duration, required List<MessageSender> otherParticipantIds})
A message with information about a group call not bound to a chat. If the message is incoming, the call isn't active, isn't missed, and has no duration, and getOption("can_accept_calls") is true, then incoming call screen must be shown to the user. Use getGroupCallParticipants to show current group call participants on the screen. Use joinGroupCall to accept the call or declineGroupCallInvitation to decline it. If the call becomes active or missed, then the call screen must be hidden
const
MessageGroupCall.fromJson(Map<String, dynamic> json)
Parses a MessageGroupCall from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
duration → int
Call duration, in seconds; for left calls only
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isActive → bool
True, if the call is active, i.e. the called user joined the call
final
isVideo → bool
True, if the call is a video call
final
otherParticipantIds → List<MessageSender>
Identifiers of some other call participants
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uniqueId → int
Persistent unique group call identifier
final
wasMissed → bool
True, if the called user missed or declined the call
final

Methods

copyWith({int? uniqueId, bool? isActive, bool? wasMissed, bool? isVideo, int? duration, List<MessageSender>? otherParticipantIds}) → MessageGroupCall
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
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.