internal IrcClient(IrcNetwork network, TcpWrapper wrapper) { this.Network = network; this._client = wrapper; this._client.LineReceived += Client_DataReceived; this._client.ConnectionClosed += Client_ConnectionClosed; this.Ctcp = new CtcpClient(); IdentServer.UserNameNeeded += IdentServer_UserNameNeeded; }
internal IrcUser(IrcClient client, IrcNetwork network) : base(client) { this.Network = network; this.ChannelsInternal = new ObservableCollection <IrcChannel>(); this.Channels = new ReadOnlyObservableCollection <IrcChannel>(this.ChannelsInternal); this._modes = new ObservableCollection <char>(); this.Modes = new ReadOnlyObservableCollection <char>(this._modes); this.Ctcp = new CtcpUserExtension(this); }
internal IrcChannel(IrcClient client, IrcNetwork network, string fullName) : base(client) { this.Network = network; this.Key = string.Empty; this.FullName = fullName; this.Kind = this.Network.Parameters.ChannelKinds[fullName[0]]; this.Topic = new IrcChannelTopic(); this._modes = new ObservableCollection <char>(); this.BanMasksInternal = new ObservableCollectionEx <string>(); this.BanExceptionsInternal = new ObservableCollectionEx <string>(); this.InviteExceptionsInternal = new ObservableCollectionEx <string>(); this.Modes = new ReadOnlyObservableCollection <char>(this._modes); this.UserModes = new IrcUserModeCollection(); this.BanMasks = new ReadOnlyObservableCollection <string>(this.BanMasksInternal); this.BanExceptions = new ReadOnlyObservableCollection <string>(this.BanExceptionsInternal); this.InviteExceptions = new ReadOnlyObservableCollection <string>(this.InviteExceptionsInternal); this.Ctcp = new CtcpChannelExtension(this); }