public TransferAssetViewModel(ITransactionService transactionService, ISecureStorage secureStorage, IAppData appData, IBucketData bucketData, IUserData userData, IConnectivity connectivity) { this.transactionService = transactionService; this.secureStorage = secureStorage; this.appData = appData; this.bucketData = bucketData; this.userData = userData; this.connectivity = connectivity; }
public AppData(ISecureStorage secureStorage, IUserData userData, IUserCardsService userCardsService, IRatesService ratesService, IBucketService bucketService, IUserAssetsService userAssetsService, IRatesData ratesData, ICardData cardData, IBucketData bucketData) { this.secureStorage = secureStorage; this.userData = userData; this.userCardsService = userCardsService; this.ratesService = ratesService; this.bucketService = bucketService; this.userAssetsService = userAssetsService; this.ratesData = ratesData; this.cardData = cardData; this.bucketData = bucketData; }
public BucketHomeViewModel(ICardsService cardsService, ISecureStorage secureStorage, IConnectivity connectivity, IAppData appData, ICardData cardData, IBucketData bucketData) { this.cardsService = cardsService; this.connectivity = connectivity; this.appData = appData; this.cardData = cardData; this.bucketData = bucketData; this.secureStorage = secureStorage; Amount = new Property <string>("Amount").RequiredString("Please specify amount").RequiredFormat(@"^\d*(\.\d+)?$", "Please specify a valid number"); SendCommand = new XCommand(async() => await Send(), CanSend); SendCommand.SetDependency(Amount); CardBalance = appData.Cards.Any() ? $"$ {appData.Cards.First().Balance}" : "You do not have any cards. Order a card first."; BucketBalance = appData.BucketAmount; }
public HomeController(IBucketData bucketData, IGreeter greeter) { _bucketData = bucketData; _greeter = greeter; }
public EditModel(IBucketData bucketData) { _bucketData = bucketData; }