In progress

This commit is contained in:
2024-05-14 09:48:25 +02:00
parent da789b3306
commit 54c5943180
5 changed files with 41 additions and 26 deletions

View File

@ -5,18 +5,24 @@ class Ask {
}
async ask_game(asked) {
response = await this.client._post(`/api/chat/ask/`);
response = await this.client._post(`/api/chat/ask/`, {
asked:asked,
});
}
async ask_game_canceled() {
}
async ask_game_accepted() {
async ask_game_accepted(asker) {
response = await this.client._post(`/api/chat/ask/accept`, {
asker:asker,
});
}
async ask_game_refused() {
async ask_game_refused(asker) {
response = await this.client._delete(`/api/chat/ask/`, {
asker:asker,
});
}
}