mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 03:28:49 -07:00
refactor redux data model
This commit is contained in:
parent
ae1bc3da38
commit
0ff391491d
243 changed files with 5212 additions and 5963 deletions
16
webclient/src/api/request/RoomsRequestImpl.ts
Normal file
16
webclient/src/api/request/RoomsRequestImpl.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import type { IRoomsRequest } from '@app/websocket';
|
||||
import { RoomCommands, SessionCommands } from '@app/websocket';
|
||||
|
||||
export class RoomsRequestImpl implements IRoomsRequest {
|
||||
joinRoom(roomId: number): void {
|
||||
SessionCommands.joinRoom(roomId);
|
||||
}
|
||||
|
||||
leaveRoom(roomId: number): void {
|
||||
RoomCommands.leaveRoom(roomId);
|
||||
}
|
||||
|
||||
roomSay(roomId: number, message: string): void {
|
||||
RoomCommands.roomSay(roomId, message);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue