From ded8acc83692f07deb67729b440b5c3fe9c8836d Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Sat, 11 Jul 2020 22:13:22 +0200 Subject: [PATCH] Rename internal class --- .../im/vector/matrix/android/internal/session/room/RoomAPI.kt | 4 ++-- .../room/create/{CreateRoomParams.kt => CreateRoomBody.kt} | 2 +- .../session/room/create/CreateRoomParamsInternalBuilder.kt | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/{CreateRoomParams.kt => CreateRoomBody.kt} (99%) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/RoomAPI.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/RoomAPI.kt index a82c96f93d..fd16b1891e 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/RoomAPI.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/RoomAPI.kt @@ -25,7 +25,7 @@ import im.vector.matrix.android.api.util.JsonDict import im.vector.matrix.android.internal.network.NetworkConstants import im.vector.matrix.android.internal.session.room.alias.AddRoomAliasBody import im.vector.matrix.android.internal.session.room.alias.RoomAliasDescription -import im.vector.matrix.android.internal.session.room.create.CreateRoomParams +import im.vector.matrix.android.internal.session.room.create.CreateRoomBody import im.vector.matrix.android.internal.session.room.create.CreateRoomResponse import im.vector.matrix.android.internal.session.room.create.JoinRoomResponse import im.vector.matrix.android.internal.session.room.membership.RoomMembersResponse @@ -80,7 +80,7 @@ internal interface RoomAPI { */ @Headers("CONNECT_TIMEOUT:60000", "READ_TIMEOUT:60000", "WRITE_TIMEOUT:60000") @POST(NetworkConstants.URI_API_PREFIX_PATH_R0 + "createRoom") - fun createRoom(@Body param: CreateRoomParams): Call + fun createRoom(@Body param: CreateRoomBody): Call /** * Get a list of messages starting from a reference. diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomParams.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomBody.kt similarity index 99% rename from matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomParams.kt rename to matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomBody.kt index 525a0501fc..7a27da3607 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomParams.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomBody.kt @@ -28,7 +28,7 @@ import im.vector.matrix.android.internal.session.room.membership.threepid.ThreeP * Parameter to create a room */ @JsonClass(generateAdapter = true) -internal data class CreateRoomParams( +internal data class CreateRoomBody( /** * A public visibility indicates that the room will be shown in the published room list. * A private visibility will hide the room from the published room list. diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomParamsInternalBuilder.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomParamsInternalBuilder.kt index 765317005a..f7088841b8 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomParamsInternalBuilder.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomParamsInternalBuilder.kt @@ -43,7 +43,7 @@ internal class CreateRoomParamsInternalBuilder @Inject constructor( private val accessTokenProvider: AccessTokenProvider ) { - suspend fun build(builder: CreateRoomParamsBuilder): CreateRoomParams { + suspend fun build(builder: CreateRoomParamsBuilder): CreateRoomBody { val invite3pids = builder.invite3pids .takeIf { it.isNotEmpty() } .let { @@ -70,7 +70,7 @@ internal class CreateRoomParamsInternalBuilder @Inject constructor( ) .takeIf { it.isNotEmpty() } - return CreateRoomParams( + return CreateRoomBody( visibility = builder.visibility, roomAliasName = builder.roomAliasName, name = builder.name,