From a456f4c6a593fecb28dea1d25085f4b9a045b478 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Sat, 11 Jul 2020 22:16:35 +0200 Subject: [PATCH] Rename CreateRoomParamsInternalBuilder to CreateRoomBodyBuilder for clarity --- ...eRoomParamsInternalBuilder.kt => CreateRoomBodyBuilder.kt} | 2 +- .../android/internal/session/room/create/CreateRoomTask.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/{CreateRoomParamsInternalBuilder.kt => CreateRoomBodyBuilder.kt} (98%) 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/CreateRoomBodyBuilder.kt similarity index 98% rename from matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomParamsInternalBuilder.kt rename to matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomBodyBuilder.kt index afc5066ac9..442dde8ce2 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/CreateRoomBodyBuilder.kt @@ -34,7 +34,7 @@ import im.vector.matrix.android.internal.session.room.membership.threepid.ThreeP import java.security.InvalidParameterException import javax.inject.Inject -internal class CreateRoomParamsInternalBuilder @Inject constructor( +internal class CreateRoomBodyBuilder @Inject constructor( private val ensureIdentityTokenTask: EnsureIdentityTokenTask, private val crossSigningService: CrossSigningService, private val deviceListManager: DeviceListManager, diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomTask.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomTask.kt index d0b746af7d..40cd872287 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomTask.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/create/CreateRoomTask.kt @@ -48,12 +48,12 @@ internal class DefaultCreateRoomTask @Inject constructor( private val readMarkersTask: SetReadMarkersTask, @SessionDatabase private val realmConfiguration: RealmConfiguration, - private val createRoomParamsInternalBuilder: CreateRoomParamsInternalBuilder, + private val createRoomBodyBuilder: CreateRoomBodyBuilder, private val eventBus: EventBus ) : CreateRoomTask { override suspend fun execute(params: CreateRoomParams): String { - val createRoomParams = createRoomParamsInternalBuilder.build(params) + val createRoomParams = createRoomBodyBuilder.build(params) val createRoomResponse = executeRequest(eventBus) { apiCall = roomAPI.createRoom(createRoomParams)