Skip to content

Commit a5f4413

Browse files
committed
using a generic boolean capability model for booleans
1 parent 5af56f6 commit a5f4413

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/homeserver/GetCapabilitiesResult.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ internal data class GetCapabilitiesResult(
3737
internal data class Capabilities(
3838
/**
3939
* Capability to indicate if the user can change their password.
40+
* True if the user can change their password, false otherwise.
4041
*/
4142
@Json(name = "m.change_password")
42-
val changePassword: ChangePassword? = null,
43+
val changePassword: BooleanCapability? = null,
4344

4445
/**
4546
* This capability describes the default and available room versions a server supports, and at what level of stability.
@@ -50,9 +51,9 @@ internal data class Capabilities(
5051
)
5152

5253
@JsonClass(generateAdapter = true)
53-
internal data class ChangePassword(
54+
internal data class BooleanCapability(
5455
/**
55-
* Required. True if the user can change their password, false otherwise.
56+
* Required.
5657
*/
5758
@Json(name = "enabled")
5859
val enabled: Boolean?

0 commit comments

Comments
 (0)