Skip to content

Commit

Permalink
using a generic boolean capability model for booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
ouchadam committed Feb 11, 2022
1 parent 5af56f6 commit a5f4413
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ internal data class GetCapabilitiesResult(
internal data class Capabilities(
/**
* Capability to indicate if the user can change their password.
* True if the user can change their password, false otherwise.
*/
@Json(name = "m.change_password")
val changePassword: ChangePassword? = null,
val changePassword: BooleanCapability? = null,

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

@JsonClass(generateAdapter = true)
internal data class ChangePassword(
internal data class BooleanCapability(
/**
* Required. True if the user can change their password, false otherwise.
* Required.
*/
@Json(name = "enabled")
val enabled: Boolean?
Expand Down

0 comments on commit a5f4413

Please sign in to comment.