fix parsing (#6075)

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
Parneet Singh 2024-12-26 20:57:03 +05:30 committed by GitHub
parent 4244373a5d
commit 22238f55cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,9 @@
package fr.free.nrw.commons.wikidata.mwapi package fr.free.nrw.commons.wikidata.mwapi
import com.google.gson.annotations.SerializedName
open class MwPostResponse : MwResponse() { open class MwPostResponse : MwResponse() {
@SerializedName("success")
val successVal: Int = 0 val successVal: Int = 0
fun success(result: String?): Boolean = fun success(result: String?): Boolean =