コード例 #1
0
        public static async Task <bool> Logging()
        {
            var user = UserOptions.GetUser();

            if (string.IsNullOrEmpty(user))
            {
                return(false);
            }

            var model = new LoginModel
            {
                email    = user,
                password = UserOptions.GetPassword(),
            };

            UIFunc.ShowLoading(U.StandartLoggingText);
            var result = await WebServiceFunc.SubmitLogin(model);

            UIFunc.HideLoading();

            if (!result.Item1)
            {
                return(false);
            }

            var aspxauth = result.Item4;

            UserOptions.SetAspxauth(aspxauth);

            return(true);
        }
コード例 #2
0
 void AddContentHeaders(HttpHeaders content)
 {
     content.Add("UserRowId", UserOptions.GetUserRowId().ToString());
     content.Add("DeviceId", UserOptions.GetDeviceId().ToString());
     content.Add("Password", UserOptions.GetPassword());
 }