/// <summary> /// Initializes a new instance of the <see cref="WeeklyTrendsCommand"/> class. /// </summary> /// <param name="tokens">The request tokens.</param> /// <param name="options">The options.</param> public WeeklyTrendsCommand(OAuthTokens tokens, TrendsOptions options) : base( HTTPVerb.GET, "trends/weekly.json", tokens, options) { }
/// <summary> /// Initializes a new instance of the <see cref="TrendsCommand"/> class. /// </summary> /// <param name="tokens">The request tokens.</param> /// <param name="options">The options.</param> public DailyTrendsCommand(OAuthTokens tokens, TrendsOptions options) : base( HttpMethod.Get, "trends/daily.json", tokens, options) { }
/// <summary> /// Initializes the command. /// </summary> public override void Init() { TrendsOptions options = this.OptionalProperties as TrendsOptions; if (options == null) { return; } if (!String.IsNullOrEmpty(options.Date)) { this.RequestParameters.Add("date", options.Date); } if (options.ExcludeHashTags) { this.RequestParameters.Add("exclude", "hashtags"); } }