Ejemplo n.º 1
0
 public TransactionController(PostCommand <Transaction> command, GetAllCommand <Transaction> getCommand,
                              GetStringCommand <Transaction> getStringCommand)
 {
     this.postCommand      = command;
     this.getAllCommand    = getCommand;
     this.getStringCommand = getStringCommand;
 }
Ejemplo n.º 2
0
 public AccountController(PostCommand <Account> command, GetAllCommand <Account> getAllCommand,
                          GetStringCommand <Account> getStringCommand, DeleteCommand deleteCommand, PutCommand <Account> putCommand)
 {
     this.postCommand      = command;
     this.getAllCommand    = getAllCommand;
     this.getStringCommand = getStringCommand;
     this.deleteCommand    = deleteCommand;
     this.putCommand       = putCommand;
 }
Ejemplo n.º 3
0
 protected void GetStringCommandHandler(GetStringCommand cmd)
 {
     cmd.result = _localStorageService.GetString(cmd.key, cmd.userID);
 }
Ejemplo n.º 4
0
 protected void GetStringCommandHandler(GetStringCommand cmd)
 {
     _cloudStorageService.GetString(cmd.key, cmd.resultHandler, cmd.userID);
 }