Implemented ClassQuizController-logic

This commit is contained in:
Mawoka
2023-03-27 21:04:08 +02:00
parent 603939fb20
commit 46ff32a986
13 changed files with 488 additions and 98 deletions
@@ -0,0 +1,25 @@
## Basic Request
Every request is a json-object: `{"type": "SOME_TYPE", "data": "ANY_DATA"}`
### Types
#### e (Error)
- [ ] Client
- [x] Server
Pretty self-explanatory.
Value is a CamelCase errorcode.
Codes:
- `ValidationError`
- `BadId`
#### bp (ButtonPress)
- [x] Client
- [ ] Server
Sends a button-press to the server, where `data` is either `b`, `g`, `y` or `r`. Capital letters indicate a long-press.