public Chat(ChatWindow chatWindow) { this.apiInstance = new WebChatApi(); this.chatWindow = chatWindow; }