Release 2.0.0

This commit is contained in:
Frank Rotermund
2022-11-27 13:18:53 +00:00
parent c2f475d115
commit 275f8accc6
570 changed files with 20366 additions and 4410 deletions
@@ -29,3 +29,14 @@ class AuthenticatedEndpointRequest: NSObject {
super.init()
}
}
// MARK: - Helper methods
extension AuthenticatedEndpointRequest {
/// Create an authenticated request on `_matrix/client/r0/devices/{deviceID}`.
/// - Parameter deviceID: The device ID that is to be deleted.
static func deleteDevice(_ deviceID: String) -> AuthenticatedEndpointRequest {
let path = String(format: "%@/devices/%@", kMXAPIPrefixPathR0, MXTools.encodeURIComponent(deviceID))
return AuthenticatedEndpointRequest(path: path, httpMethod: "DELETE")
}
}