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
Dto
The comment that should be rendered.
public abstract CommentDto Dto { get; }
Property Value
UserInfo
User-related information about the comment's creator.
public abstract UserInformationDto UserInfo { get; }
Property Value
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
GoToCreatorProfile()
Navigates to the comment creator's profile page.
void GoToCreatorProfile()