mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 20:43:54 -07:00
refactor redux data model
This commit is contained in:
parent
ae1bc3da38
commit
0ff391491d
243 changed files with 5212 additions and 5963 deletions
23
webclient/src/api/response/index.ts
Normal file
23
webclient/src/api/response/index.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import type { IWebClientResponse } from '@app/websocket';
|
||||
|
||||
import { SessionResponseImpl } from './SessionResponseImpl';
|
||||
import { RoomResponseImpl } from './RoomResponseImpl';
|
||||
import { GameResponseImpl } from './GameResponseImpl';
|
||||
import { AdminResponseImpl } from './AdminResponseImpl';
|
||||
import { ModeratorResponseImpl } from './ModeratorResponseImpl';
|
||||
|
||||
export { SessionResponseImpl } from './SessionResponseImpl';
|
||||
export { RoomResponseImpl } from './RoomResponseImpl';
|
||||
export { GameResponseImpl } from './GameResponseImpl';
|
||||
export { AdminResponseImpl } from './AdminResponseImpl';
|
||||
export { ModeratorResponseImpl } from './ModeratorResponseImpl';
|
||||
|
||||
export function createWebClientResponse(): IWebClientResponse {
|
||||
return {
|
||||
session: new SessionResponseImpl(),
|
||||
room: new RoomResponseImpl(),
|
||||
game: new GameResponseImpl(),
|
||||
admin: new AdminResponseImpl(),
|
||||
moderator: new ModeratorResponseImpl(),
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue