diff options
| author | RblSb <msrblsb@gmail.com> | 2020-02-19 12:06:37 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-02-19 12:06:37 +0300 |
| commit | 2ecf9b8d31457175c6cc4ca5a441a165556afb77 (patch) | |
| tree | ac78bb6e4432d239af3f752972c03c8ef473cadb /src/Types.hx | |
| parent | 07d1955cefc093ffb12002902ed45e963030746e (diff) | |
More buttons
Emotes, filters, config, server history, autologin, tab blinking
Diffstat (limited to 'src/Types.hx')
| -rw-r--r-- | src/Types.hx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Types.hx b/src/Types.hx index 3d4ac4f..03f18bd 100644 --- a/src/Types.hx +++ b/src/Types.hx @@ -2,6 +2,35 @@ package; import Client.ClientData; +typedef Config = { + channelName:String, + maxLoginLength:Int, + maxMessageLength:Int, + serverChatHistory:Int, + videoLimit:Int, + leaderRequest:String, + emotes:Array<Emote>, + filters:Array<Filter> +}; + +typedef Emote = { + name:String, + image:String +}; + +typedef Filter = { + name:String, + regex:String, + flags:String, + replace:String +}; + +typedef Message = { + text:String, + name:String, + time:String +} + typedef VideoItem = { url:String, title:String, @@ -12,6 +41,8 @@ typedef VideoItem = { typedef WsEvent = { type:WsEventType, ?connected:{ + config:Config, + history:Array<Message>, clients:Array<ClientData>, isUnknownClient:Bool, clientName:String, |
