Esempio n. 1
0
 public CampfireChatClient(CampfireNetClient campfireNetClient, CampfireChatSettings campfireChatSettings, ChatRoomTable chatRoomTable, ChatMessageSender messageSender)
 {
     this.campfireChatSettings = campfireChatSettings;
     CampfireNetClient         = campfireNetClient;
     ChatRoomTable             = chatRoomTable;
     MessageSender             = messageSender;
 }
Esempio n. 2
0
        public ChatRoomContext(CampfireChatClient campfireChatClient, ChatMessageSender chatMessageSender, IdentityHash chatroomIdentityHash)
        {
            this.campfireChatClient = campfireChatClient;
            this.chatMessageSender  = chatMessageSender;

            ChatroomIdentityHash = chatroomIdentityHash;
        }
Esempio n. 3
0
        public static CampfireChatClient Create(CampfireNetClient campfireNetClient)
        {
            var campfireChatSettings = new CampfireChatSettings {
                LocalFriendlyName = "Anonymous"
            };
            var chatRoomTable      = new ChatRoomTable();
            var messageSender      = new ChatMessageSender(campfireNetClient, chatRoomTable);
            var campfireChatClient = new CampfireChatClient(campfireNetClient, campfireChatSettings, chatRoomTable, messageSender);

            chatRoomTable.SetChatMessageSender(messageSender);
            chatRoomTable.SetCampfireChatClient(campfireChatClient);
            campfireChatClient.Initialize();
            return(campfireChatClient);
        }
Esempio n. 4
0
 public void SetChatMessageSender(ChatMessageSender chatMessageSender)
 {
     this.chatMessageSender = chatMessageSender;
 }