public RestAPI getAPI() { if (myRestAPI == null) { myRestAPI = new RestAPI(); } return(myRestAPI); }
public LoginPageVM(App _app) { app = _app; api = app.getAPI(); BotaoVisivel = true; Autenticar = new Command(async() => await _autenticar()); Registrar = new Command(async() => await _registrar()); }
public TasksVM(App _app) { ListaAtualizando = false; app = _app; api = app.getAPI(); TaskSelecionado = new TaskModel(); Tasks = new ObservableCollection <TaskModel>(); DeleteTask = new Command(async() => await _deleteTask()); SaveTask = new Command(async() => await _saveTask()); RefreshTasks = new Command(async() => await _refreshTasks()); }