예제 #1
0
 /// <summary>
 /// Gets the locations where trends are available.
 /// </summary>          
 /// <param name="options">The options.</param>
 /// <returns>
 /// A collection of <see cref="Twitterizer.TwitterTrendLocation"/> objects.
 /// </returns>
 public static TwitterResponse<TwitterTrendLocationCollection> Available(AvailableTrendsOptions options)
 {
     return Available(null, options);
 }
예제 #2
0
 /// <summary>
 /// Gets the locations where trends are available.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <returns>
 /// A collection of <see cref="Twitterizer.TwitterTrendLocation"/> objects.
 /// </returns>
 public static TwitterResponse <TwitterTrendLocationCollection> Available(AvailableTrendsOptions options)
 {
     return(Available(null, options));
 }
예제 #3
0
        /// <summary>
        /// Gets the locations where trends are available.
        /// </summary>   
        /// <param name="tokens">The request tokens.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// A collection of <see cref="Twitterizer.TwitterTrendLocation"/> objects.
        /// </returns>
        public static TwitterResponse<TwitterTrendLocationCollection> Available(OAuthTokens tokens, AvailableTrendsOptions options)
        {
            Commands.AvailableTrendsCommand command = new Twitterizer.Commands.AvailableTrendsCommand(tokens, options);

            return Core.CommandPerformer.PerformAction(command);
        }
예제 #4
0
        /// <summary>
        /// Gets the locations where trends are available.
        /// </summary>
        /// <param name="tokens">The request tokens.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// A collection of <see cref="Twitterizer.TwitterTrendLocation"/> objects.
        /// </returns>
        public static TwitterResponse <TwitterTrendLocationCollection> Available(OAuthTokens tokens, AvailableTrendsOptions options)
        {
            Commands.AvailableTrendsCommand command = new Twitterizer.Commands.AvailableTrendsCommand(tokens, options);

            return(Core.CommandPerformer.PerformAction(command));
        }
예제 #5
0
 /// <summary>
 /// Gets the locations where trends are available.
 /// </summary>   
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Available(AvailableTrendsOptions options, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterTrendLocationCollection>> function)
 {
     return AsyncUtility.ExecuteAsyncMethod(null, options, timeout, TwitterTrend.Available, function);
 }
예제 #6
0
 /// <summary>
 /// Gets the locations where trends are available.
 /// </summary>   
 /// <param name="tokens">The request tokens. Leave null for unauthenticated request.</param>
 /// <param name="options">The options. Leave null for defaults.</param>
 /// <returns>
 /// A collection of <see cref="Twitterizer.TwitterTrendLocation"/> objects.
 /// </returns>
 public static async Task<TwitterResponse<TwitterTrendLocationCollection>> AvailableAsync(OAuthTokens tokens = null, AvailableTrendsOptions options = null)
 {
     return await Core.CommandPerformer.PerformAction(new Twitterizer.Commands.AvailableTrendsCommand(tokens, options));
 }        
예제 #7
0
 /// <summary>
 /// Gets the locations where trends are available.
 /// </summary>
 /// <param name="tokens">The request tokens. Leave null for unauthenticated request.</param>
 /// <param name="options">The options. Leave null for defaults.</param>
 /// <returns>
 /// A collection of <see cref="Twitterizer.TwitterTrendLocation"/> objects.
 /// </returns>
 public static async Task <TwitterResponse <TwitterTrendLocationCollection> > AvailableAsync(OAuthTokens tokens = null, AvailableTrendsOptions options = null)
 {
     return(await Core.CommandPerformer.PerformAction(new Twitterizer.Commands.AvailableTrendsCommand(tokens, options)));
 }
 /// <summary>
 /// Gets the locations where trends are available.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Available(AvailableTrendsOptions options, TimeSpan timeout, Action <TwitterAsyncResponse <TwitterTrendLocationCollection> > function)
 {
     return(AsyncUtility.ExecuteAsyncMethod(null, options, timeout, TwitterTrend.Available, function));
 }