public TweetinviSettings() { GetUtcDateTime = () => DateTime.UtcNow; Limits = new TwitterLimits(); HttpRequestTimeout = TimeSpan.FromSeconds(10); TweetMode = Tweetinvi.TweetMode.Extended; }
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); }
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); }
public TweetinviSettings() { GetUtcDateTime = () => DateTime.UtcNow; Limits = new TwitterLimits(); }