sharp-chat/SharpChat.Protocol.IRC/ServerCommands/ServerCommand.cs

19 lines
467 B
C#
Raw Normal View History

2022-08-30 15:05:29 +00:00
using SharpChat.Users;
namespace SharpChat.Protocol.IRC.ServerCommands {
public abstract class ServerCommand : IServerCommand {
public abstract string CommandName { get; }
public virtual IUser Sender => null;
private string Line { get; set; }
protected abstract string BuildLine();
public string GetLine() {
if(Line == null)
Line = BuildLine();
return Line;
}
}
}