Rename CreateRoomParamsInternalBuilder to CreateRoomBodyBuilder for clarity

This commit is contained in:
Benoit Marty 2020-07-11 22:16:35 +02:00
parent e097bd8117
commit a456f4c6a5
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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<CreateRoomResponse>(eventBus) {
apiCall = roomAPI.createRoom(createRoomParams)