/// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="options">The options.</param>
 public static TwitterResponse<TwitterTrendDictionary> Weekly(TrendsOptions options)
 {
     return Weekly(null, options);
 }
 /// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="options">The options.</param>
 public static TwitterResponse <TwitterTrendDictionary> Weekly(TrendsOptions options)
 {
     return(Weekly(null, options));
 }
        /// <summary>
        /// Gets the weekly global trends
        /// </summary>
        /// <param name="tokens">The request tokens.</param>
        /// <param name="options">The options.</param>
        public static TwitterResponse<TwitterTrendDictionary> Weekly(OAuthTokens tokens, TrendsOptions options)
        {
            Commands.WeeklyTrendsCommand command = new Twitterizer.Commands.WeeklyTrendsCommand(tokens, options);

            return Core.CommandPerformer.PerformAction(command);
        }
 /// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Weekly(TrendsOptions options, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterTrendDictionary>> function)
 {
     return AsyncUtility.ExecuteAsyncMethod(null, options, timeout, TwitterTrend.Weekly, function);
 }
        /// <summary>
        /// Gets the weekly global trends
        /// </summary>
        /// <param name="tokens">The request tokens.</param>
        /// <param name="options">The options.</param>
        public static TwitterResponse <TwitterTrendDictionary> Weekly(OAuthTokens tokens, TrendsOptions options)
        {
            Commands.WeeklyTrendsCommand command = new Twitterizer.Commands.WeeklyTrendsCommand(tokens, options);

            return(Core.CommandPerformer.PerformAction(command));
        }
 /// <summary>
 /// Gets the daily global trends
 /// </summary>
 /// <param name="tokens">The request tokens.</param>
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Daily(OAuthTokens tokens, TrendsOptions options, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterTrendDictionary>> function)
 {
     return AsyncUtility.ExecuteAsyncMethod(tokens, options, timeout, TwitterTrend.Daily, function);
 }
Exemple #7
0
 /// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="tokens">The request tokens. Leave null for unauthenticated request.</param>
 /// <param name="options">The options. Leave null for defaults.</param>
 public static async Task<TwitterResponse<TwitterTrendDictionary>> WeeklyAsync(OAuthTokens tokens = null, TrendsOptions options = null)
 {
     return await Core.CommandPerformer.PerformAction(new Twitterizer.Commands.WeeklyTrendsCommand(tokens, options));
 }        
 /// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="tokens">The request tokens. Leave null for unauthenticated request.</param>
 /// <param name="options">The options. Leave null for defaults.</param>
 public static async Task <TwitterResponse <TwitterTrendDictionary> > WeeklyAsync(OAuthTokens tokens = null, TrendsOptions options = null)
 {
     return(await Core.CommandPerformer.PerformAction(new Twitterizer.Commands.WeeklyTrendsCommand(tokens, options)));
 }
 /// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Weekly(TrendsOptions options, TimeSpan timeout, Action <TwitterAsyncResponse <TwitterTrendDictionary> > function)
 {
     return(AsyncUtility.ExecuteAsyncMethod(null, options, timeout, TwitterTrend.Weekly, function));
 }
 /// <summary>
 /// Gets the daily global trends
 /// </summary>
 /// <param name="tokens">The request tokens.</param>
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Daily(OAuthTokens tokens, TrendsOptions options, TimeSpan timeout, Action <TwitterAsyncResponse <TwitterTrendDictionary> > function)
 {
     return(AsyncUtility.ExecuteAsyncMethod(tokens, options, timeout, TwitterTrend.Daily, function));
 }