Example #1
0
        static void Main(string[] args)
        {
            var chatRoom = new TheChtaRoomItself("TelericAkademyChat");

            var gosho = new SkypeClient("gosho");
            var losho = new SkypeClient("losho");
            var tosho = new mIRcata("tosho");

            gosho.JoinChatRoom(chatRoom);
            losho.JoinChatRoom(chatRoom);
            tosho.JoinChatRoom(chatRoom);

            tosho.SentMessage(chatRoom, "haide an kuponnn");
            gosho.SentMessage(chatRoom, "zaeta sum duhai");
            losho.SentMessage(chatRoom, "haied v 33 da se nakovem");

            Console.WriteLine(tosho.Hystory);
        }
Example #2
0
 public void SentMessage(TheChtaRoomItself room, string content)
 {
     room.PublishMessage(this.User, content);
 }
Example #3
0
 public void JoinChatRoom(TheChtaRoomItself room)
 {
     room.MessageSend += this.OnMessageReceived;
 }