예제 #1
0
        public ExecutableOfferOverviewViewModel(IOfferConsumerService offerConsumerService, IStellarService stellarService)
            : base(offerConsumerService)
        {
            rand = new Random();

            this.stellarService = stellarService;
        }
예제 #2
0
        public StartupService(IConfigurationRoot config, IStellarService stellarService)
        {
            //DatabaseQueueService databaseQueueService
            _config         = config;
            _stellarService = stellarService;

            _logger = DicordLogFactory.GetLogger <StartupService>(GlobalVariables.DiscordId, GlobalVariables.DiscordToken);
        }
 public StartupService(IConfigurationRoot config, IDatabaseService databaseService,
                       IStellarService stellarService)
 {
     _config          = config;
     _databaseService = databaseService;
     _stellarService  = stellarService;
     _logger          = LogManager.GetLogger(typeof(StartupService));
 }
        public TransactionOverviewViewModel(IStellarService stellarService)
        {
            this.Header         = "Received transactions";
            this.stellarService = stellarService;
            this.Transactions   = new BindableCollection <Transaction>();

            this.stellarService.TransactionReceived += StellarService_TransactionReceived;
            this.stellarService.ReceiveAccountTransactions();
        }
        public PaymentOverviewViewModel(IStellarService stellarService)
        {
            this.Header         = "Received payments";
            this.stellarService = stellarService;
            this.Payments       = new BindableCollection <Payment>();

            this.stellarService.PaymentReceived += StellarService_PaymentReceived;
            this.stellarService.ReceiveMyPayments();
        }
예제 #6
0
        public AccountViewModel(IStellarService stellarService)
        {
            this.stellarService = stellarService;
            this.stellarService.AccountReceived += StellarService_AccountReceived;

            var accountUpdateTask = new Task(LoadMyAccount);

            accountUpdateTask.Start();
        }
예제 #7
0
        public ShellViewModel(IStellarService stellarService, IOfferConsumerService offerConsumerService)
        {
            FlyoutViewModels = new BindableCollection <FlyoutBaseViewModel>();

            ExecutableOfferOverviewViewModel        = new ExecutableOfferOverviewViewModel(offerConsumerService, stellarService);
            ExecutableOfferOverviewViewModel.Header = "Latest offers";

            PaymentOverviewViewModel        = new PaymentOverviewViewModel(stellarService);
            PaymentOverviewViewModel.Header = "My payments";

            AccountViewModel = new AccountViewModel(stellarService);
        }
예제 #8
0
        public ShellViewModel(IStellarService stellarService, IOfferConsumerService offerConsumerService)
        {
            FlyoutViewModels = new BindableCollection <FlyoutBaseViewModel>();

            OfferOverviewViewModel        = new OfferOverviewViewModel(offerConsumerService);
            OfferOverviewViewModel.Header = "Latest offers";

            PaymentOverviewViewModel = new PaymentOverviewViewModel(stellarService);

            TransactionOverviewViewModel        = new TransactionOverviewViewModel(stellarService);
            TransactionOverviewViewModel.Header = "Latest transactions";

            MapViewModel = new MapViewModel();
        }
 public WalletsController(IStellarService stellarService)
 {
     _stellarService = stellarService;
 }
예제 #10
0
 public SignController(IStellarService stellarService)
 {
     _stellarService = stellarService;
 }
예제 #11
0
        public ShellViewModel(ISettingsService settingsService, IOfferProducerService offerProducerService, IStellarService stellarService)
        {
            FlyoutViewModels = new BindableCollection <FlyoutBaseViewModel>();

            OfferOverviewVieModel    = new OfferOverviewViewModel(offerProducerService);
            OfferCreateViewModel     = new OfferCreateViewModel(settingsService, offerProducerService);
            PaymentOverviewViewModel = new PaymentOverviewViewModel(stellarService);
            AccountViewModel         = new AccountViewModel(stellarService);
        }