public CoinsViewModel(QBitNinjaClientFactory factory, IStorage localStorage)
        {
            if (factory == null)
            {
                throw new ArgumentNullException("factory");
            }
            if (localStorage == null)
            {
                throw new ArgumentNullException("localStorage");
            }
            _Factory      = factory;
            _LocalStorage = localStorage;


            //15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe (me)
            //akSjSW57xhGp86K6JFXXroACfRCw7SPv637 (colored)

            MessengerInstance.Register <ShowCoinsMessage>(this, _ =>
            {
                if (SearchedCoins != _.Container)
                {
                    SearchedCoins = _.Container;
                    Search.Execute(null);
                }
            });

            var notrack = LoadCache();
        }
 public SearchViewModel(QBitNinjaClientFactory factory)
 {
     _QBitNinjaClientFactory = factory;
     MessengerInstance.Register <SearchMessage>(this, m =>
     {
         if (SearchedTerm != m.Term)
         {
             SearchedTerm = m.Term;
             Search.Execute();
         }
     });
 }
Beispiel #3
0
 public ServerViewModel(QBitNinjaClientFactory factory)
 {
     if (factory == null)
     {
         throw new ArgumentNullException("factory");
     }
     _Factory = factory;
     Observable
     .Interval(TimeSpan.FromSeconds(30.0))
     .ObserveHere()
     .Subscribe(Update);
     Update(0);
 }
 public WalletsViewModel(QBitNinjaClientFactory factory, IStorage storage)
 {
     _ClientFactory = factory;
     _Storage       = storage;
     var unused = LoadCache();
 }