public Command(CommandLineTextInterface clti, IMediaPlayerController mp, Database db) { Map = new Dictionary <string, CliCommand> { { "play", new PlayCommand(clti, mp) }, { "pause", new PauseCommand(clti, mp) }, { "playt", new PlayTrackCommand(clti, mp, db) }, { "next", new PlayPrevCommand(clti, mp) }, { "query", new QueryCommand(clti, db) }, }; }
public PlayTrackCommand(CommandLineTextInterface clti, IMediaPlayerController mp, Database db) : base(clti, mp) { this.db = db; HasAnonymousArg = true; DeclareArgs(); }
public PauseCommand(CommandLineTextInterface clti, IMediaPlayerController mp) : base(clti, mp) { }
protected CliCommand(CommandLineTextInterface clti) { Clti = clti; }
protected MediaCommand(CommandLineTextInterface clti, IMediaPlayerController mp) : base(clti) { Mp = mp; }
public Interpreter(CommandLineTextInterface clti, Dictionary <string, CliCommand> map) { this.clti = clti; this.map = map; }
internal QueryCommand(CommandLineTextInterface clti, IDatabase db) : base(clti) { this.db = db; Required.Add(typeToken); HasAnonymousArg = true; }
public Lexer(CommandLineTextInterface clti) { this.clti = clti; }