Cockatrice/webclient/src/store/server/server.interfaces.ts
Joseph Chamish 1ddc9cc929
Structure change (#4220)
* Structure change

* Remove duplicate folders from previous structure

* Cleanup websocket protocol

* Updating from based off PR

* Fixup - remove wrong files during conflict and get the websocket working

* renaming tsx to ts

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
2021-01-20 18:50:18 -05:00

40 lines
No EOL
727 B
TypeScript

import { Log, SortBy, User, UserSortField } from "types";
export interface ServerConnectParams {
host: string;
port: string;
user: string;
pass: string;
}
export interface ServerState {
buddyList: User[];
ignoreList: User[];
info: ServerStateInfo;
status: ServerStateStatus;
logs: ServerStateLogs;
user: User;
users: User[];
sortUsersBy: ServerStateSortUsersBy;
}
export interface ServerStateStatus {
description: string;
state: number;
}
export interface ServerStateInfo {
message: string;
name: string;
version: string;
}
export interface ServerStateLogs {
room: Log[];
game: Log[];
chat: Log[];
}
export interface ServerStateSortUsersBy extends SortBy {
field: UserSortField
}