//public LoginViewModel(INavigation nav) public LoginViewModel() { azureService = DependencyService.Get <AzureServices>(); //navigation = nav; //Title = "Social Login"; }
public ItemsPage() { InitializeComponent(); manager = AzureServices.DefaultManager; BindingContext = viewModel = new ItemsViewModel(); }
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; }