mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Improve current push provider test: give info about the distributor.
This commit is contained in:
+10
@@ -24,6 +24,11 @@ interface PushProvider {
|
||||
*/
|
||||
val name: String
|
||||
|
||||
/**
|
||||
* true if the Push provider supports multiple distributors.
|
||||
*/
|
||||
val supportMultipleDistributors: Boolean
|
||||
|
||||
/**
|
||||
* Return the list of available distributors.
|
||||
*/
|
||||
@@ -34,6 +39,11 @@ interface PushProvider {
|
||||
*/
|
||||
suspend fun registerWith(matrixClient: MatrixClient, distributor: Distributor): Result<Unit>
|
||||
|
||||
/**
|
||||
* Return the current distributor, or null if none.
|
||||
*/
|
||||
suspend fun getCurrentDistributorValue(sessionId: SessionId): String?
|
||||
|
||||
/**
|
||||
* Return the current distributor, or null if none.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user