Example #1
0
        /// <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));
        }
Example #2
0
 public static ITokenRateLimits GetCredentialsRateLimits(IOAuthCredentials credentials, bool useRateLimitCache = false)
 {
     if (useRateLimitCache)
     {
         return(_rateLimitCacheManager.GetTokenRateLimits(credentials));
     }
     else
     {
         return(HelpController.GetCredentialsRateLimits(credentials));
     }
 }