// Parameters protected virtual void AddBaseParametersToQuery(StringBuilder queryBuilder) { if (_filteredLanguages.Any()) { var languages = string.Join(Uri.EscapeDataString(", "), _filteredLanguages.Select(x => x.ToLowerInvariant())); queryBuilder.AddParameterToQuery("language", languages); } if (StallWarnings) { queryBuilder.AddParameterToQuery("stall_warnings", "true"); } if (FilterLevel != StreamFilterLevel.None) { queryBuilder.AddParameterToQuery("filter_level", FilterLevel.ToString().ToLowerInvariant()); } if (!string.IsNullOrEmpty(_customRequestParameters.FormattedCustomQueryParameters)) { queryBuilder.Append(string.Format("&{0}", _customRequestParameters.FormattedCustomQueryParameters)); } if (TweetMode == TweetMode.Extended) { queryBuilder.AddParameterToQuery("tweet_mode", "extended"); } }
// Parameters protected virtual void AddBaseParametersToQuery(StringBuilder queryBuilder) { if (_filteredLanguages.Any()) { queryBuilder.AddParameterToQuery("language", string.Join(Uri.EscapeDataString(", "), _filteredLanguages)); } if (StallWarnings) { queryBuilder.AddParameterToQuery("stall_warnings", "true"); } if (FilterLevel != StreamFilterLevel.None) { queryBuilder.AddParameterToQuery("filter_level", FilterLevel.ToString()); } if (!string.IsNullOrEmpty(_customRequestParameters.FormattedCustomQueryParameters)) { queryBuilder.Append(string.Format("&{0}", _customRequestParameters.FormattedCustomQueryParameters)); } }