/// <summary> /// Get all the rate limits of all the Twitter endpoints /// </summary> public static ICredentialsRateLimits GetCredentialsRateLimits(ITwitterCredentials credentials, bool useRateLimitCache = false) { if (useRateLimitCache) { return(RateLimitCacheManager.GetCredentialsRateLimits(credentials)); } return(HelpController.GetCredentialsRateLimits(credentials)); }
public static ITokenRateLimits GetCredentialsRateLimits(IOAuthCredentials credentials, bool useRateLimitCache = false) { if (useRateLimitCache) { return(_rateLimitCacheManager.GetTokenRateLimits(credentials)); } else { return(HelpController.GetCredentialsRateLimits(credentials)); } }