From 2ecf9b8d31457175c6cc4ca5a441a165556afb77 Mon Sep 17 00:00:00 2001 From: RblSb Date: Wed, 19 Feb 2020 12:06:37 +0300 Subject: More buttons Emotes, filters, config, server history, autologin, tab blinking --- src/Types.hx | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'src/Types.hx') 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, + filters:Array +}; + +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, clients:Array, isUnknownClient:Bool, clientName:String, -- cgit v1.2.3