Rename internal class

This commit is contained in:
Benoit Marty 2020-07-11 22:13:22 +02:00
parent d8a0a1d38e
commit ded8acc836
3 changed files with 5 additions and 5 deletions

View file

@ -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<CreateRoomResponse>
fun createRoom(@Body param: CreateRoomBody): Call<CreateRoomResponse>
/**
* Get a list of messages starting from a reference.

View file

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

View file

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