AbstractCallRepository class abstract

OngoingCalls repository interface.

Implementers

Constructors

AbstractCallRepository()

Properties

calls → RxObsMap<ChatId, Rx<OngoingCall>>
Map of the current OngoingCalls.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(ChatCall call, {bool dontAddIfAccounted = false}) → Future<Rx<OngoingCall>?>
Adds the provided ChatCall to the calls, if not already.
addStored(WebStoredCall stored, {bool withAudio = true, bool withVideo = true, bool withScreen = false}) → Rx<OngoingCall>
Transforms the provided WebStoredCall into an OngoingCall and adds it, if not already.
contains(ChatId chatId) → bool
Returns true if an OngoingCall identified by chatId exists in the calls map.
decline(ChatId chatId) → Future<void>
Declines the current OngoingCall in the specified chatId by the authenticated MyUser.
generateCredentials(ChatId chatId) → Future<ChatCallCredentials>
Generates the ChatCallCredentials for a Chat identified by the provided chatId.
getCredentials(ChatItemId callId) → Future<ChatCallCredentials>
Returns the ChatCallCredentials for an OngoingCall identified by the provided callId.
heartbeat(ChatItemId id, ChatCallDeviceId deviceId) → Stream<ChatCallEvents>
Subscribes to ChatCallEvents of an OngoingCall.
join(ChatId chatId, ChatCall? call, {bool withAudio = true, bool withVideo = false, bool withScreen = false}) → Future<Rx<OngoingCall>?>
Joins the current OngoingCall in the specified chatId by the authenticated MyUser.
leave(ChatId chatId, ChatCallDeviceId deviceId) → Future<void>
Leaves the current OngoingCall in the specified chatId by the authenticated MyUser.
move(ChatId chatId, ChatId newChatId) → void
Switches the OngoingCall identified by its chatId to the specified newChatId.
moveCredentials(ChatItemId callId, ChatItemId newCallId, ChatId chatId, ChatId newChatId) → Future<void>
Moves the ChatCallCredentials from the callId to the newCallId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redialChatCallMember(ChatId chatId, UserId memberId) → Future<void>
Redials a User who left or declined the ongoing ChatCall in the specified Chat-group by the authenticated MyUser.
remove(ChatId chatId) → Rx<OngoingCall>?
Ends an OngoingCall happening in the Chat identified by the provided chatId.
removeChatCallMember(ChatId chatId, UserId userId) → Future<void>
Removes the specified User from the ChatCall of the specified Chat-group by authority of the authenticated MyUser.
removeCredentials(ChatId chatId, ChatItemId callId) → Future<void>
Removes the ChatCallCredentials of an OngoingCall identified by the provided chatId and callId.
start(ChatId chatId, {bool withAudio = true, bool withVideo = true, bool withScreen = false}) → Future<Rx<OngoingCall>>
Starts a new OngoingCall in the specified chatId by the authenticated MyUser.
toggleHand(ChatId chatId, ChatCallDeviceId deviceId, bool raised) → Future<void>
Raises/lowers a hand of the authenticated MyUser in the specified ChatCall.
toString() → String
A string representation of this object.
inherited
transferCredentials(ChatId chatId, ChatItemId callId) → Future<void>
Copies the ChatCallCredentials from the provided Chat and links them to the specified OngoingCall.
transformDialogCallIntoGroupCall(ChatId chatId, ChatCallDeviceId deviceId, List<UserId> additionalMemberIds, ChatName? groupName) → Future<void>
Moves an ongoing ChatCall in a Chat-dialog to a newly created Chat-group, optionally adding new members.

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](ChatId chatId) → Rx<OngoingCall>?
Returns reactive OngoingCall if there's any identified by chatId.
operator []=(ChatId chatId, Rx<OngoingCall> call) → void
Replaces the value of OngoingCall identified by chatId to call.