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

Search Results for

    Improve this Doc

    Method LikePost

    | Improve this Doc View Source

    LikePost(LikePostForm, CancellationToken)

    Likes a post.

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

    The form to send for liking 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 liking the post.

    Implements
    ILemmyHttpClient.LikePost(LikePostForm, CancellationToken)
    © SlyCedix. All rights reserved.