public async Task <PrxCustomer> SignUp() { this.IsBusy = true; this.Customer.SignupIP = WebService.GetIpAddress(); PrxCustomer prxCustomer = await WebService.RegisterCustomer(this.Customer); this.IsBusy = false; return(prxCustomer); }
public async static Task <PrxCustomer> Login(Customer customer) { PrxCustomer prxCustomer = await Task.Factory.StartNew(() => { string result = DependencyService.Get <IWebService>().Login(customer); return(JsonConvert.DeserializeObject <PrxCustomer>(result)); }); return(prxCustomer); }
public void Init(PrxCustomer prxCustomer) { if (this.Customer == null) { this.Customer = new Customer(); } this.Email = prxCustomer.Email; this.aID = prxCustomer.aID; this.CountryID = prxCustomer.CountryID; this.FirstName = prxCustomer.FirstName; this.LastName = prxCustomer.LastName; this.Mobile = prxCustomer.Mobile; }
public void Init(PrxCustomer prxCustomer) { _prxCustomer = prxCustomer; _viewModel = new ResultPageViewModel(); }