public override void Write(CommandSerializer serializer)
        {
            base.Write(serializer);

            serializer.PutParam(this.Operator);
            serializer.PutParam(this.User);
        }
Beispiel #2
0
        public override void Write(CommandSerializer serializer)
        {
            base.Write(serializer);

            serializer.PutParam(this.Method);
            serializer.PutParam(this.Capability);
        }
Beispiel #3
0
        public override void Write(CommandSerializer serializer)
        {
            base.Write(serializer);

            serializer.PutParam(this.User);
            serializer.PutParam(this.Command);
            serializer.PutParam(this.Message.AddPrefix(IRCParams.TrailingPrefix));
        }
Beispiel #4
0
        public override void Write(CommandSerializer serializer)
        {
            base.Write(serializer);

            serializer.PutParam(this.User);
            serializer.PutParam(ChannelSeparator);
            serializer.PutParam(this.Channel);

            var users = this.Users;

            serializer.PutParam(string.Join(UsersDelimiter, users).AddPrefix(IRCParams.TrailingPrefix));
        }
        public override void Write(CommandSerializer serializer)
        {
            base.Write(serializer);

            var message = this.Message;

            if (message != null)
            {
                var value = this.Message.AddPrefix(IRCParams.TrailingPrefix);
                serializer.PutParam(value);
            }
        }
Beispiel #6
0
        public override void Write(CommandSerializer serializer)
        {
            base.Write(serializer);

            serializer.WriteTags(this.Tags);

            var user = this.User;

            if (user != null)
            {
                serializer.PutParam(user.AddPrefix(IRCParams.TrailingPrefix));
            }
        }
        public override void Write(CommandSerializer serializer)
        {
            base.Write(serializer);

            var targetChannel = this.TargetChannel;
            var viewers       = this.Viewers;

            var toString = new StringBuilder();

            toString.Append(IRCParams.TrailingPrefix);
            toString.Append(targetChannel ?? HostStop);

            if (viewers.HasValue == true)
            {
                toString.Append(ViewersSeparator);
                toString.Append(viewers.Value);
            }

            serializer.PutParam(toString.ToString());
        }
        public override void Write(CommandSerializer serializer)
        {
            base.Write(serializer);

            serializer.PutParam(this.Channel);
        }