Lemmy .NET API Lemmy .NET API
Lemmy .NET API Lemmy .NET API

Search Results for

    Improve this Doc

    Method LockPost

    | Improve this Doc View Source

    LockPost(LockPostForm, CancellationToken)

    Locks a post.

    Declaration
    public Task<PostResponse> LockPost(LockPostForm form, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    LockPostForm form

    The form to send for locking a post.

    CancellationToken cancellationToken

    Optional cancellation token to pass through to HttpClient

    Returns
    Type Description
    Task<PostResponse>

    The task object representing the asynchronous operation. The task result contains the response after locking the post.

    Implements
    ILemmyHttpClient.LockPost(LockPostForm, CancellationToken)
    © SlyCedix. All rights reserved.