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