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

20 lines
491 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
using System;
namespace SharpChat.Protocol.IRC.Replies {
public class CreatedReply : Reply {
public const int CODE = 3;
public override int ReplyCode => CODE;
private Context Context { get; }
public CreatedReply(Context ctx) {
Context = ctx ?? throw new ArgumentNullException(nameof(ctx));
}
protected override string BuildLine() {
return $@":This server was created {Context.Created:r}";
}
}
}