BoxKite.Twitter.UsersExtensions.DeleteUserBlock C# (CSharp) Метод

DeleteUserBlock() публичный статический Метод

Un-blocks the user specified in the ID parameter for the authenticating user. Returns the un-blocked user in the requested format when successful. If relationships existed before the block was instated, they will not be restored.
ref: https://dev.twitter.com/docs/api/1.1/post/blocks/destroy
public static DeleteUserBlock ( this session, string screenName = "", long userId ) : Task
session this
screenName string The screen name of the potentially blocked user.
userId long The ID of the potentially blocked user.
Результат Task
        public static async Task<User> DeleteUserBlock(this IUserSession session, string screenName = "", long userId = 0)
        {
            var parameters = new TwitterParametersCollection();
            parameters.Create(include_entities: true, skip_status: true, screen_name: screenName, user_id: userId);

            if (parameters.EnsureEitherOr("screen_name", "user_id").IsFalse())
            {
                return session.MapParameterError<User>(
                        "Either screen_name or user_id required");
            }

            return await session.PostAsync(TwitterApi.Resolve("/1.1/blocks/destroy.json"), parameters)
                         .ContinueWith(c => c.MapToSingle<User>());
        }