mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
feat:make campaign model fields mutable to allow for correct deserialization
This commit is contained in:
parent
cc0fb9f632
commit
c9014f3538
2 changed files with 6 additions and 6 deletions
|
|
@ -7,8 +7,8 @@ import com.google.gson.annotations.SerializedName
|
|||
*/
|
||||
class CampaignConfig {
|
||||
@SerializedName("showOnlyLiveCampaigns")
|
||||
private val showOnlyLiveCampaigns = false
|
||||
var showOnlyLiveCampaigns = false
|
||||
|
||||
@SerializedName("sortBy")
|
||||
private val sortBy: String? = null
|
||||
}
|
||||
var sortBy: String? = null
|
||||
}
|
||||
|
|
@ -8,8 +8,8 @@ import fr.free.nrw.commons.campaigns.models.Campaign
|
|||
*/
|
||||
class CampaignResponseDTO {
|
||||
@SerializedName("config")
|
||||
val campaignConfig: CampaignConfig? = null
|
||||
var campaignConfig: CampaignConfig? = null
|
||||
|
||||
@SerializedName("campaigns")
|
||||
val campaigns: List<Campaign>? = null
|
||||
}
|
||||
var campaigns: List<Campaign>? = null
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue