Update room image models and upload params
This commit is contained in:
@@ -2,6 +2,7 @@ package com.android.trisolarispms.data.api
|
||||
|
||||
import com.android.trisolarispms.data.api.model.ImageDto
|
||||
import okhttp3.MultipartBody
|
||||
import okhttp3.RequestBody
|
||||
import okhttp3.ResponseBody
|
||||
import retrofit2.Response
|
||||
import retrofit2.http.GET
|
||||
@@ -24,7 +25,10 @@ interface RoomImageApi {
|
||||
suspend fun uploadRoomImage(
|
||||
@Path("propertyId") propertyId: String,
|
||||
@Path("roomId") roomId: String,
|
||||
@Part file: MultipartBody.Part
|
||||
@Part file: MultipartBody.Part,
|
||||
@Part("roomSortOrder") roomSortOrder: RequestBody? = null,
|
||||
@Part("roomTypeSortOrder") roomTypeSortOrder: RequestBody? = null,
|
||||
@Part("tags") tags: List<RequestBody>? = null
|
||||
): Response<ImageDto>
|
||||
|
||||
@Streaming
|
||||
|
||||
@@ -55,9 +55,13 @@ data class ImageDto(
|
||||
val id: String? = null,
|
||||
val propertyId: String? = null,
|
||||
val roomId: String? = null,
|
||||
val roomTypeCode: String? = null,
|
||||
val url: String? = null,
|
||||
val thumbnailUrl: String? = null,
|
||||
val contentType: String? = null,
|
||||
val sizeBytes: Long? = null,
|
||||
val tags: List<String>? = null,
|
||||
val roomSortOrder: Int? = null,
|
||||
val roomTypeSortOrder: Int? = null,
|
||||
val createdAt: String? = null
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user