From 988aa335897ce8b4fccc3365a4ce8dbc354868e4 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 16 Dec 2020 16:17:32 -0700 Subject: [PATCH] Add docs for the GetPastQuestions event --- server/events.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/server/events.md b/server/events.md index 401ba0b..1a0e964 100644 --- a/server/events.md +++ b/server/events.md @@ -123,10 +123,25 @@ Sends a card to the server, the server either then either forwards the card to t | from | String | The source of the card. This will be one of `"deck"`, or `"guesser"`

+--- + +# `GetPastQuestions`: + +## Description: +This event is sent from the client to the server when it has the PastQuestions component visible. ## Request Payload: | Property | Type | Description | -------- | ---- | ----------- +| team | Integer | The team we are requesting the questions for. This can be one of `1`, or `2`, any other value will cause an error to be returned. + +## Response Payload: (`PastQuestions`) +| Property | Type | Description +| -------- | ---- | ----------- +| questions | String[] | All the previously chosen questions for the team. + +

+--- ## Response Payload: (``)