BoxKite.Twitter.TwitterConnection.VerifyUserCredentials C# (CSharp) Метод

VerifyUserCredentials() публичный Метод

Given the current session, this will Verify that the current User's credentials are OK And update this TwitterConnection's AccountSettings and AccountDetails
public VerifyUserCredentials ( ) : Task
Результат Task
        public async Task<bool> VerifyUserCredentials()
        {
            AccountDetails = await UserSession.GetVerifyCredentials();
            if (AccountDetails.OK) // go deeper
            {
                UserSession.IsActive = true;
                AccountSettings = await UserSession.GetAccountSettings();
                AccountDetails = await UserSession.GetUserProfile(userId: AccountDetails.UserId);
                return AccountDetails.OK;
            }
            else
                return false; // return false here will abandon all hope
        }