Ejemplo n.º 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);
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 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));
 }        
Ejemplo n.º 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)));
 }
Ejemplo n.º 8
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));
 }