From b598c19a1d0c110cd0d4d1ce0d9e35479a09add2 Mon Sep 17 00:00:00 2001 From: fenglibin Date: Thu, 7 Mar 2024 16:14:26 +0800 Subject: [PATCH] update region config method --- .../main/java/io/agora/flat/data/model/RegionConfigs.kt | 5 ++--- app/src/main/java/io/agora/flat/http/api/MiscService.kt | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/io/agora/flat/data/model/RegionConfigs.kt b/app/src/main/java/io/agora/flat/data/model/RegionConfigs.kt index ececbf40..25066eb5 100644 --- a/app/src/main/java/io/agora/flat/data/model/RegionConfigs.kt +++ b/app/src/main/java/io/agora/flat/data/model/RegionConfigs.kt @@ -59,11 +59,10 @@ data class Google( ) data class CloudStorage( - @SerializedName("singleFileSize") var singleFileSize: Int? = null, - @SerializedName("totalSize") var totalSize: Int? = null, + @SerializedName("singleFileSize") var singleFileSize: Long? = null, + @SerializedName("totalSize") var totalSize: Long? = null, @SerializedName("allowFileSuffix") var allowFileSuffix: ArrayList = arrayListOf(), @SerializedName("accessKey") var accessKey: String? = null - ) data class Censorship( diff --git a/app/src/main/java/io/agora/flat/http/api/MiscService.kt b/app/src/main/java/io/agora/flat/http/api/MiscService.kt index 21adcce9..8c8380be 100644 --- a/app/src/main/java/io/agora/flat/http/api/MiscService.kt +++ b/app/src/main/java/io/agora/flat/http/api/MiscService.kt @@ -3,6 +3,7 @@ package io.agora.flat.http.api import io.agora.flat.data.model.* import retrofit2.Call import retrofit2.http.Body +import retrofit2.http.GET import retrofit2.http.POST /** @@ -32,8 +33,6 @@ interface MiscService { @Body req: RtmCensorReq, ): Call> - @POST("v2/region/configs") - fun getRegionConfigs( - @Body req: BaseReq = BaseReq.EMPTY, - ): Call> + @GET("v2/region/configs") + fun getRegionConfigs(): Call> } \ No newline at end of file