public TweetinviSettings()
 {
     GetUtcDateTime     = () => DateTime.UtcNow;
     Limits             = new TwitterLimits();
     HttpRequestTimeout = TimeSpan.FromSeconds(10);
     TweetMode          = Tweetinvi.TweetMode.Extended;
 }
Example #2
0
 public void Initialize(ITweetinviSettings other)
 {
     ProxyConfig          = other.ProxyConfig;
     HttpRequestTimeout   = other.HttpRequestTimeout;
     RateLimitTrackerMode = other.RateLimitTrackerMode;
     RateLimitWaitFudge   = other.RateLimitWaitFudge;
     TweetMode            = other.TweetMode;
     GetUtcDateTime       = other.GetUtcDateTime;
     Converters           = other.Converters;
     Limits = new TwitterLimits(other.Limits);
 }
Example #3
0
        public TweetinviSettings(ITweetinviSettings source) : this()
        {
            if (source == null)
            {
                return;
            }

            ProxyConfig          = source.ProxyConfig == null || source.ProxyConfig.Address == null ? null : new ProxyConfig(source.ProxyConfig);
            HttpRequestTimeout   = source.HttpRequestTimeout;
            RateLimitTrackerMode = source.RateLimitTrackerMode;
            RateLimitWaitFudge   = source.RateLimitWaitFudge;
            TweetMode            = source.TweetMode;
            GetUtcDateTime       = source.GetUtcDateTime;
            Converters           = source.Converters;
            Limits = new TwitterLimits(source.Limits);
        }
Example #4
0
 public TweetinviSettings()
 {
     GetUtcDateTime = () => DateTime.UtcNow;
     Limits         = new TwitterLimits();
 }