public bool Login(LoginDetails loginDetails) { _loginDetails = loginDetails; try { var client = getClient(); Locations request = new Locations(); request.q = "me"; LocationsResponse response = client.Get <LocationsResponse>(request); if (response.Results != null && response.Results.Count > 0) { return(true); } else { _loginDetails = null; return(false); } } catch { _loginDetails = null; throw; } }
public LoginPage(string filePath) { InitializeComponent(); BindingContext = this; Item = new LoginDetails(); }