sharp-chat/SharpChat.Protocol.IRC/Replies/IsOnReply.cs

21 lines
546 B
C#
Raw Normal View History

2022-08-30 15:05:29 +00:00
using System;
using System.Collections.Generic;
namespace SharpChat.Protocol.IRC.Replies {
public class IsOnReply : Reply {
public const int CODE = 303;
public override int ReplyCode => CODE;
private IEnumerable<string> UserNames { get; }
public IsOnReply(IEnumerable<string> userNames) {
UserNames = userNames ?? throw new ArgumentNullException(nameof(userNames));
}
protected override string BuildLine() {
return string.Join(' ', UserNames);
}
}
}