Display results

This commit is contained in:
Vojtěch Káně
2021-04-01 16:36:38 +02:00
parent de28e7ab8c
commit 688f87922d
6 changed files with 142 additions and 6 deletions

View File

@@ -1,21 +1,22 @@
package rtcomm
type StateUpdate struct {
Players []Player `json:"players"`
Players []Player `json:"players,omitempty"`
Question *QuestionUpdate `json:"question,omitempty"`
Results bool `json:"results,omitempty"`
}
type Player struct {
Organiser bool `json:"organiser"`
Name string `json:"name"`
Organiser bool `json:"organiser"`
Name string `json:"name"`
}
type QuestionUpdate struct {
Title string `json:"title"`
Title string `json:"title"`
Answers []Answer `json:"answers"`
}
type Answer struct{
ID string `json:"id"`
type Answer struct {
ID string `json:"id"`
Title string `json:"title"`
}