Esempio n. 1
0
        //public LoginViewModel(INavigation nav)
        public LoginViewModel()
        {
            azureService = DependencyService.Get <AzureServices>();
            //navigation = nav;

            //Title = "Social Login";
        }
Esempio n. 2
0
        public ItemsPage()
        {
            InitializeComponent();
            manager = AzureServices.DefaultManager;

            BindingContext = viewModel = new ItemsViewModel();
        }
Esempio n. 3
0
        public async Task <List <Cat> > GetCats()
        {
            //List<Cat> cats;

            //var URLApi = "http://demos.ticapacitacion.com/cats";

            //using (var client = new HttpClient())
            //{
            //    var json = await client.GetStringAsync(URLApi);
            //    cats = JsonConvert.DeserializeObject<List<Cat>>(json);
            //}

            //return cats;

            var service = new AzureServices <Cat>();
            var cats    = await service.GetTable();

            return(cats.ToList());
        }
 public MainPageViewModel()
 {
     serv         = new AzureServices();
     LoginCommand = new Command(ExecuteCommandLogin);
 }
 private void Awake()
 {
     // このクラスをシングルトンとしてふるまわせる
     Instance = this;
 }
 private void Awake()
 {
     instance = this;
 }