/// <summary> /// Reset the oauth token information /// </summary> /// <param name="oAuth1Token">IOAuth1Token</param> public static void ResetToken(this IOAuth1Token oAuth1Token) { oAuth1Token.OAuthToken = null; oAuth1Token.OAuthTokenSecret = null; oAuth1Token.OAuthTokenVerifier = null; }
/// <summary> /// Test if the IOAuth1Token has a token set /// </summary> /// <param name="oAuth1Token">IOAuth1Token</param> /// <returns>true if the specified IOAuth1Token has token information</returns> public static bool HasToken(this IOAuth1Token oAuth1Token) { return(!string.IsNullOrEmpty(oAuth1Token.OAuthToken) || !string.IsNullOrEmpty(oAuth1Token.OAuthTokenSecret)); }