Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
        public LoginPage(string filePath)
        {
            InitializeComponent();



            BindingContext = this;

            Item = new LoginDetails();
        }