Ejemplo n.º 1
0
        /// <summary>
        /// Gets the trends with the specified WOEID.
        /// </summary>
        /// <param name="tokens">The request tokens.</param>
        /// <param name="WoeID">The WOEID.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects.
        /// </returns>
        public static TwitterResponse<TwitterTrendCollection> Trends(OAuthTokens tokens, int WoeID, LocalTrendsOptions options)
        {
            Commands.TrendsCommand command = new Twitterizer.Commands.TrendsCommand(tokens, WoeID, options);

            return Core.CommandPerformer.PerformAction(command);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the trends with the specified WOEID.
 /// </summary>
 /// <param name="WoeID">The WOEID.</param>
 /// <param name="options">The options.</param>
 /// <returns>
 /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects.
 /// </returns>
 public static TwitterResponse <TwitterTrendCollection> Trends(int WoeID, LocalTrendsOptions options)
 {
     return(Trends(null, WoeID, options));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the trends with the specified WOEID.
 /// </summary>
 /// <param name="WoeID">The WOEID.</param>
 /// <param name="options">The options.</param>
 /// <returns>
 /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects.
 /// </returns>
 public static TwitterResponse<TwitterTrendCollection> Trends(int WoeID, LocalTrendsOptions options)
 {
     return Trends(null, WoeID, options);
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Gets the trends with the specified WOEID.
        /// </summary>
        /// <param name="tokens">The request tokens.</param>
        /// <param name="WoeID">The WOEID.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects.
        /// </returns>
        public static TwitterResponse <TwitterTrendCollection> Trends(OAuthTokens tokens, int WoeID, LocalTrendsOptions options)
        {
            Commands.TrendsCommand command = new Twitterizer.Commands.TrendsCommand(tokens, WoeID, options);

            return(Core.CommandPerformer.PerformAction(command));
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Gets the trends with the specified WOEID.
 /// </summary>
 /// <param name="tokens">The request tokens.</param>
 /// <param name="woeId">The WOEID.</param>
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Trends(OAuthTokens tokens, int woeId, LocalTrendsOptions options, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterTrendCollection>> function)
 {
     return AsyncUtility.ExecuteAsyncMethod(tokens, woeId, options, timeout, TwitterTrend.Trends, function);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Gets the trends with the specified WOEID.
 /// </summary>
 /// <param name="tokens">The request tokens. Leave null for unauthenticated request.</param>
 /// <param name="WoeID">The WOEID.</param>
 /// <param name="options">The options. Leave null for defaults.</param>
 /// <returns>
 /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects.
 /// </returns>
 public static async Task<TwitterResponse<TwitterTrendCollection>> TrendsAsync(int WoeID, OAuthTokens tokens = null, LocalTrendsOptions options = null)
 {
     return await Core.CommandPerformer.PerformAction(new Twitterizer.Commands.TrendsCommand(tokens, WoeID, options));
 }        
Ejemplo n.º 7
0
 /// <summary>
 /// Gets the trends with the specified WOEID.
 /// </summary>
 /// <param name="tokens">The request tokens. Leave null for unauthenticated request.</param>
 /// <param name="WoeID">The WOEID.</param>
 /// <param name="options">The options. Leave null for defaults.</param>
 /// <returns>
 /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects.
 /// </returns>
 public static async Task <TwitterResponse <TwitterTrendCollection> > TrendsAsync(int WoeID, OAuthTokens tokens = null, LocalTrendsOptions options = null)
 {
     return(await Core.CommandPerformer.PerformAction(new Twitterizer.Commands.TrendsCommand(tokens, WoeID, options)));
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Gets the trends with the specified WOEID.
 /// </summary>
 /// <param name="tokens">The request tokens.</param>
 /// <param name="woeId">The WOEID.</param>
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Trends(OAuthTokens tokens, int woeId, LocalTrendsOptions options, TimeSpan timeout, Action <TwitterAsyncResponse <TwitterTrendCollection> > function)
 {
     return(AsyncUtility.ExecuteAsyncMethod(tokens, woeId, options, timeout, TwitterTrend.Trends, function));
 }