36 lines
No EOL
947 B
TypeScript
36 lines
No EOL
947 B
TypeScript
import {LocalIcon} from "tc-shared/file/Icons";
|
|
|
|
export type HandlerConnectionState = "disconnected" | "connecting" | "connected";
|
|
|
|
export type HandlerStatus = {
|
|
connectionState: HandlerConnectionState,
|
|
handlerName: string,
|
|
voiceReplaying: boolean,
|
|
serverIcon: LocalIcon | undefined
|
|
}
|
|
|
|
export interface ConnectionListUIEvents {
|
|
action_set_active_handler: { handlerId: string },
|
|
action_destroy_handler: { handlerId: string },
|
|
action_scroll: { direction: "left" | "right" }
|
|
|
|
query_handler_status: { handlerId: string },
|
|
query_handler_list: {},
|
|
|
|
notify_handler_list: {
|
|
handlerIds: string[],
|
|
activeHandlerId: string | undefined
|
|
},
|
|
notify_active_handler: {
|
|
handlerId: string
|
|
},
|
|
notify_handler_status: {
|
|
handlerId: string,
|
|
status: HandlerStatus
|
|
},
|
|
notify_scroll_status: {
|
|
left: boolean,
|
|
right: boolean
|
|
},
|
|
notify_destroy: {}
|
|
} |