18 lines
467 B
C#
18 lines
467 B
C#
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;
|
|
}
|
|
}
|
|
}
|