예제 #1
0
 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)
 {
 }
예제 #4
0
 protected CliCommand(CommandLineTextInterface clti)
 {
     Clti = clti;
 }
 protected MediaCommand(CommandLineTextInterface clti, IMediaPlayerController mp) : base(clti)
 {
     Mp = mp;
 }
예제 #6
0
 public Interpreter(CommandLineTextInterface clti, Dictionary <string, CliCommand> map)
 {
     this.clti = clti;
     this.map  = map;
 }
예제 #7
0
 internal QueryCommand(CommandLineTextInterface clti, IDatabase db) : base(clti)
 {
     this.db = db;
     Required.Add(typeToken);
     HasAnonymousArg = true;
 }
예제 #8
0
 public Lexer(CommandLineTextInterface clti)
 {
     this.clti = clti;
 }