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

15 lines
369 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
namespace SharpChat.Protocol.IRC.Replies {
public abstract class Reply : IReply {
public abstract int ReplyCode { get; }
private string Line { get; set; }
protected abstract string BuildLine();
public string GetLine() {
if(Line == null)
Line = BuildLine();
return Line;
}
}
}