Приложение
This commit is contained in:
20
client-mobile/core/domain/model/ServerConfigModel.kt
Normal file
20
client-mobile/core/domain/model/ServerConfigModel.kt
Normal file
@@ -0,0 +1,20 @@
|
||||
package core.domain.model
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
||||
data class ServerConfigModel(
|
||||
@SerializedName("features") val features: FeaturesConfig = FeaturesConfig(),
|
||||
@SerializedName("limits") val limits: LimitsConfig = LimitsConfig()
|
||||
)
|
||||
|
||||
data class FeaturesConfig(
|
||||
@SerializedName("stories") val stories: Boolean = true,
|
||||
@SerializedName("polls") val polls: Boolean = true,
|
||||
@SerializedName("calls") val calls: Boolean = true,
|
||||
@SerializedName("groups") val groups: Boolean = true
|
||||
)
|
||||
|
||||
data class LimitsConfig(
|
||||
@SerializedName("maxFileSize") val maxFileSize: Long = 100 * 1024 * 1024, // 100MB default
|
||||
@SerializedName("maxGroupMembers") val maxGroupMembers: Int = 200
|
||||
)
|
||||
Reference in New Issue
Block a user