/// <summary> /// Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. /// </summary> /// <param name="options">The options.</param> /// <returns>The 20 most recent favorite statuses</returns> public static TwitterResponse<TwitterStatusCollection> List(ListFavoritesOptions options) { return List(null, options); }
/// <summary> /// Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. /// </summary> /// <param name="tokens">The 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 List(OAuthTokens tokens, ListFavoritesOptions options, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterStatusCollection>> function) { return AsyncUtility.ExecuteAsyncMethod(tokens, options, timeout, TwitterFavorite.List, function); }
/// <summary> /// Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. /// </summary> /// <param name="tokens">The tokens.</param> /// <param name="options">The options. Leave null for defaults.</param> /// <returns>The 20 most recent favorite statuses</returns> public static async Task <TwitterResponse <TwitterStatusCollection> > ListAsync(OAuthTokens tokens, ListFavoritesOptions options = null) { return(await Core.CommandPerformer.PerformAction(new Commands.ListFavoritesCommand(tokens, options))); }
/// <summary> /// Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. /// </summary> /// <param name="tokens">The tokens.</param> /// <param name="options">The options.</param> /// <returns>The 20 most recent favorite statuses</returns> public static TwitterResponse<TwitterStatusCollection> List(OAuthTokens tokens, ListFavoritesOptions options) { return CommandPerformer.PerformAction( new Commands.ListFavoritesCommand(tokens, options)); }
/// <summary> /// Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. /// </summary> /// <param name="tokens">The 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 List(OAuthTokens tokens, ListFavoritesOptions options, TimeSpan timeout, Action <TwitterAsyncResponse <TwitterStatusCollection> > function) { return(AsyncUtility.ExecuteAsyncMethod(tokens, options, timeout, TwitterFavorite.List, function)); }
/// <summary> /// Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. /// </summary> /// <param name="options">The options.</param> /// <returns>The 20 most recent favorite statuses</returns> public static TwitterResponse <TwitterStatusCollection> List(ListFavoritesOptions options) { return(List(null, options)); }
/// <summary> /// Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. /// </summary> /// <param name="tokens">The tokens.</param> /// <param name="options">The options.</param> /// <returns>The 20 most recent favorite statuses</returns> public static TwitterResponse <TwitterStatusCollection> List(OAuthTokens tokens, ListFavoritesOptions options) { return(CommandPerformer.PerformAction( new Commands.ListFavoritesCommand(tokens, options))); }
/// <summary> /// Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. /// </summary> /// <param name="tokens">The 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 List(OAuthTokens tokens, ListFavoritesOptions options, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterStatusCollection>> function) { Func<OAuthTokens, ListFavoritesOptions, TwitterResponse<TwitterStatusCollection>> methodToCall = TwitterFavorite.List; return methodToCall.BeginInvoke( tokens, options, result => { result.AsyncWaitHandle.WaitOne(timeout); try { function(methodToCall.EndInvoke(result).ToAsyncResponse()); } catch (Exception ex) { function(new TwitterAsyncResponse<TwitterStatusCollection>() { Result = RequestResult.Unknown, ExceptionThrown = ex }); } }, null); }
/// <summary> /// Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. /// </summary> /// <param name="tokens">The tokens.</param> /// <param name="options">The options. Leave null for defaults.</param> /// <returns>The 20 most recent favorite statuses</returns> public static async Task<TwitterResponse<TwitterStatusCollection>> ListAsync(OAuthTokens tokens, ListFavoritesOptions options = null) { return await Core.CommandPerformer.PerformAction(new Commands.ListFavoritesCommand(tokens, options)); }