Skip to content

Commit aa2fb07

Browse files
committed
Fix de-serialization of TicketCheckProvider.QuestionAnswer
1 parent fec689b commit aa2fb07

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

libpretixsync/src/main/java/eu/pretix/libpretixsync/check/TicketCheckProvider.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,13 @@ interface TicketCheckProvider {
4040
}
4141

4242
class QuestionAnswer {
43-
private lateinit var _question: QuestionModel
44-
private lateinit var _jsonData: String
43+
// Either set by constructor or de-serialization
44+
lateinit var question: QuestionOutput
4545

4646
var currentValue: String? = null
4747

48-
val question: QuestionOutput
49-
get() = QuestionOutput(_question, _jsonData)
50-
5148
constructor(question: QuestionModel, jsonData: String, currentValue: String?) {
52-
this._question = question
53-
this._jsonData = jsonData
49+
this.question = QuestionOutput(question, jsonData)
5450
this.currentValue = currentValue
5551
}
5652

0 commit comments

Comments
 (0)