public MessageListGroupScriptClient(CommunicationClient OnlineCommunicationClient)
            : base(ScriptName)
        {
            this.OnlineCommunicationClient = OnlineCommunicationClient;

            ListChatHistory = new List <ChatManager.ChatMessage>();
        }
예제 #2
0
        protected internal override void Execute(IOnlineConnection Sender)
        {
            CommunicationClient CrossServerClient = new CommunicationClient(OnlineCommunicationClient.DicOnlineScripts);

            CrossServerClient.ChangeHost(IPAddress.Parse(CommunicationServerIP), CommunicationServerPort);

            OnlineCommunicationClient.DicCrossServerCommunicationByGroupID.Add(GroupID, CrossServerClient);
            CrossServerClient.Host.Send(new IdentifyScriptClient(ClientID, ClientName, true, new byte[0]));
            CrossServerClient.Host.Send(new SendGroupInviteScriptClient(GroupID, GroupName, ClientToInviteID));
            string Message = "Connected to Server: " + CommunicationServerIP + ":" + CommunicationServerPort;

            OnlineCommunicationClient.Chat.AddMessage(GroupID, new ChatManager.ChatMessage(DateTime.UtcNow, Message, ChatManager.MessageColors.Info));
        }
 public ReceiveGroupInviteScriptClient(CommunicationClient OnlineCommunicationClient)
     : base(ScriptName)
 {
     this.OnlineCommunicationClient = OnlineCommunicationClient;
 }
 public ReceiveGlobalMessageScriptClient(CommunicationClient OnlineCommunicationClient)
     : base(ScriptName)
 {
     this.OnlineCommunicationClient = OnlineCommunicationClient;
 }