Initial commit

This commit is contained in:
Vojtěch Káně
2020-12-03 23:07:44 +01:00
commit 28e22e3422
24 changed files with 1526 additions and 0 deletions

21
pkg/rtcomm/stateUpdate.go Normal file
View File

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