Skip to content

Commit

Permalink
update region config method
Browse files Browse the repository at this point in the history
  • Loading branch information
AderanFeng committed Mar 7, 2024
1 parent 2a0a3d2 commit b598c19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/io/agora/flat/data/model/RegionConfigs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> = arrayListOf(),
@SerializedName("accessKey") var accessKey: String? = null

)

data class Censorship(
Expand Down
7 changes: 3 additions & 4 deletions app/src/main/java/io/agora/flat/http/api/MiscService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down Expand Up @@ -32,8 +33,6 @@ interface MiscService {
@Body req: RtmCensorReq,
): Call<BaseResp<RtmCensorRespData>>

@POST("v2/region/configs")
fun getRegionConfigs(
@Body req: BaseReq = BaseReq.EMPTY,
): Call<BaseResp<RegionConfigs>>
@GET("v2/region/configs")
fun getRegionConfigs(): Call<BaseResp<RegionConfigs>>
}

0 comments on commit b598c19

Please sign in to comment.