fix: Allow nullable sensitive
and spoiler_text
status params (#1058)
This matches the API description and prevents an error when parsing JSON responses. Fixes #1057
This commit is contained in:
parent
8c28318474
commit
2f3895d2c4
@ -23,9 +23,9 @@ import com.squareup.moshi.JsonClass
|
|||||||
@JsonClass(generateAdapter = true)
|
@JsonClass(generateAdapter = true)
|
||||||
data class StatusParams(
|
data class StatusParams(
|
||||||
val text: String,
|
val text: String,
|
||||||
val sensitive: Boolean,
|
val sensitive: Boolean?,
|
||||||
val visibility: Status.Visibility,
|
val visibility: Status.Visibility,
|
||||||
@Json(name = "spoiler_text") val spoilerText: String,
|
@Json(name = "spoiler_text") val spoilerText: String?,
|
||||||
@Json(name = "in_reply_to_id") val inReplyToId: String?,
|
@Json(name = "in_reply_to_id") val inReplyToId: String?,
|
||||||
val poll: NewPoll?,
|
val poll: NewPoll?,
|
||||||
val language: String? = null,
|
val language: String? = null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user