/// <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); }
/// <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)); }
/// <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); }
/// <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)); }
/// <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); }
/// <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="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)); }