main
1using gorilla.commons.utility;
2using MoMoney.Presentation.Presenters;
3
4namespace momoney.presentation.presenters
5{
6 public interface IRunQueryCommand<T> : Command {}
7
8 public class RunQueryCommand<T> : IRunQueryCommand<T>
9 {
10 readonly Callback<T> callback;
11 readonly IProcessQueryCommand<T> command;
12
13 public RunQueryCommand(Callback<T> callback, IProcessQueryCommand<T> command)
14 {
15 this.callback = callback;
16 this.command = command;
17 }
18
19 public void run()
20 {
21 command.run(callback);
22 }
23 }
24}