Skip to content

Commit 184db6d

Browse files
committed
Remove setter from TicketCheckProvider.QuestionAnswer.question
All required values are set through the constructor and are not modified after that.
1 parent 8c44df8 commit 184db6d

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,9 @@ interface TicketCheckProvider {
4545

4646
var currentValue: String? = null
4747

48-
var question: QuestionOutput
48+
val question: QuestionOutput
4949
get() = QuestionOutput(_question, _jsonData)
5050

51-
set(value) {
52-
this._question = Question(
53-
server_id = value.server_id,
54-
json_data = value.json_data,
55-
position = -1, //TODO
56-
required = false, //TODO
57-
id = -1,
58-
event_slug = null,
59-
).toModel()
60-
}
61-
6251
constructor(question: QuestionModel, jsonData: String, currentValue: String?) {
6352
this._question = question
6453
this._jsonData = jsonData

0 commit comments

Comments
 (0)