-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Recently ended call metadata [WPB-14256] (#3112)
* feat: Recently ended call metadata [WPB-14256] * Small test changes * Make use case internal constructor * feat: Recently ended call metadata compact [WPB-14256] (#3113) * Code review * Include screen sharing metadata * Code review --------- Co-authored-by: Yamil Medina <[email protected]>
- Loading branch information
1 parent
ad91db8
commit 8efbb07
Showing
17 changed files
with
592 additions
and
36 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
data/src/commonMain/kotlin/com/wire/kalium/logic/data/call/RecentlyEndedCallMetadata.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2024 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
package com.wire.kalium.logic.data.call | ||
|
||
import com.wire.kalium.logic.data.conversation.Conversation | ||
|
||
data class RecentlyEndedCallMetadata( | ||
val callEndReason: Int, | ||
val callDetails: CallDetails, | ||
val conversationDetails: ConversationDetails, | ||
val isTeamMember: Boolean | ||
) { | ||
data class CallDetails( | ||
val isCallScreenShare: Boolean, | ||
val screenShareDurationInSeconds: Long, | ||
val callScreenShareUniques: Int, | ||
val isOutgoingCall: Boolean, | ||
val callDurationInSeconds: Long, | ||
val callParticipantsCount: Int, | ||
val conversationServices: Int, | ||
val callAVSwitchToggle: Boolean, | ||
val callVideoEnabled: Boolean | ||
) | ||
|
||
data class ConversationDetails( | ||
val conversationType: Conversation.Type, | ||
val conversationSize: Int, | ||
val conversationGuests: Int, | ||
val conversationGuestsPro: Int | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.