Skip to content

ICommentVm

Namespace: SlottyMedia.Backend.ViewModel.Partial.PostPage

Interface for the Comment ViewModel.

public interface ICommentVm

Properties

IsLoading

Whether the necessary comment-related data is still being loaded.

public abstract bool IsLoading { get; }

Property Value

Boolean

Dto

The comment that should be rendered.

public abstract CommentDto Dto { get; }

Property Value

CommentDto

UserInfo

User-related information about the comment's creator.

public abstract UserInformationDto UserInfo { get; }

Property Value

UserInformationDto

Methods

Initialize(Guid)

Initializes this view model with the provided comment ID. This loads all comment-related information.

Task Initialize(Guid commentId)

Parameters

commentId Guid
The ID of the comment that should be loaded

Returns

Task

GoToCreatorProfile()

Navigates to the comment creator's profile page.

void GoToCreatorProfile()