예제 #1
0
        public PersonViewModel()
        {
            _accountStore = DependencyService.Get <IAuthAccountStore>();
            _twitterApi   = new TwitterApi();
            _adafruitApi  = new AdafruitApi();

            LogoutCommand        = new Command(Logout);
            SendBadgeDataCommand = new Command(SendBadgeData);
        }
예제 #2
0
        public LoginViewModel()
        {
            _accountStore = DependencyService.Get <IAuthAccountStore>();

            TwitterAuthCommand = new Command((obj) => AuthenticateWithTwitter());
        }
예제 #3
0
 public TwitterApi()
 {
     _accountStore = DependencyService.Get <IAuthAccountStore>();
 }