Skip to content

Commit

Permalink
add doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Nov 20, 2023
1 parent 09215e8 commit 0f0e3e3
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,17 @@ import com.wire.kalium.network.exceptions.isAccessDenied
import com.wire.kalium.network.exceptions.isBadRequest
import io.ktor.http.HttpStatusCode

/**
* Use Case that allows the user to accept a requested legal hold.
*/
interface ApproveLegalHoldUseCase {

/**
* Use case [ApproveLegalHoldUseCase] operation
*
* @param password password for the user account to confirm the action, can be empty for sso users
* @return a [ApproveLegalHoldUseCase.Result] indicating the operation result
*/
suspend operator fun invoke(password: String?): Result

sealed class Result {
Expand Down

0 comments on commit 0f0e3e3

Please sign in to comment.