Beispiel #1
0
 public TransactionController(PostCommand <Transaction> command, GetAllCommand <Transaction> getCommand,
                              GetStringCommand <Transaction> getStringCommand)
 {
     this.postCommand      = command;
     this.getAllCommand    = getCommand;
     this.getStringCommand = getStringCommand;
 }
Beispiel #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;
 }
Beispiel #3
0
 protected void GetStringCommandHandler(GetStringCommand cmd)
 {
     cmd.result = _localStorageService.GetString(cmd.key, cmd.userID);
 }
Beispiel #4
0
 protected void GetStringCommandHandler(GetStringCommand cmd)
 {
     _cloudStorageService.GetString(cmd.key, cmd.resultHandler, cmd.userID);
 }