Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
        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;
        }
Example #4
0
 public HomeController(IBucketData bucketData, IGreeter greeter)
 {
     _bucketData = bucketData;
     _greeter    = greeter;
 }
Example #5
0
 public EditModel(IBucketData bucketData)
 {
     _bucketData = bucketData;
 }