public News(Messages m) { //All three are needed in order to sort the list m.NewsPostedEvent += OnNewsPosted; m.NewsEvent += OnNews; m.NewsDoneEvent += OnNewsDone; }
/// <summary>Constructor</summary> /// <param name="m"></param> /// <param name="chatId"></param> public Chat(Messages m, int chatId) { this.chatId = chatId; chatMessages = new List<ChatMessageItem>(); users = new UserList(m); m.ChatTopicEvent += OnTopicChanged; m.ChatEvent += OnChatEvent; m.ActionChatEvent += OnActionChatEvent; }
/// <summary>Constructor</summary> public UserList(Messages m) { userList = new List<User>(); m.StatusChangeEvent += OnStatusChangedMessage; m.ClientImageChangedEvent += OnClientImageChangedMessage; m.ClientInformationEvent += OnClientInformationMessage; m.ClientJoinEvent += OnClientJoinMessage; m.UserListEvent += OnUserListMessage; m.ClientLeaveEvent += OnClientLeaveMessage; m.ClientKickedEvent += OnClientKickedMessage; m.ClientBannedEvent += OnClientBannedMessage; m.PrivilegesSpecificationEvent += OnPrivilegesSpecificationMessage; }
/// <summary>Constructs a ConnectionManager. Creates a SecureSocket, a Message, and a Commands.</summary> public ConnectionManager() { messages = new Messages(); }
/// <summary>Constructor</summary> /// <param name="model"></param> public ControllerBase(SharpWiredModel model) { this.model = model; commands = model.ConnectionManager.Commands; messages = model.ConnectionManager.Messages; }