PostVmImpl
Namespace: SlottyMedia.Backend.ViewModel.Partial.Post
ViewModel for Post
public class PostVmImpl : IPostVm
Inheritance Object → PostVmImpl
Implements IPostVm
Properties
AuthPrincipalId
public Nullable<Guid> AuthPrincipalId { get; private set; }
Property Value
IsPostLiked
public bool IsPostLiked { get; private set; }
Property Value
IsLoading
public bool IsLoading { get; private set; }
Property Value
PostDto
public PostDto PostDto { get; private set; }
Property Value
CommentCount
public int CommentCount { get; private set; }
Property Value
LikeCount
public int LikeCount { get; private set; }
Property Value
UserInformation
public UserInformationDto UserInformation { get; private set; }
Property Value
Constructors
PostVmImpl(IPostService, IUserService, ILikeService, ICommentService, IAuthService, NavigationManager)
The constructor for PostVmImpl
public PostVmImpl(IPostService postService, IUserService userService, ILikeService likeService, ICommentService commentService, IAuthService authService, NavigationManager navigationManager)
Parameters
postService IPostService
userService IUserService
likeService ILikeService
commentService ICommentService
authService IAuthService
navigationManager NavigationManager
Methods
Initialize(Guid, Action)
public Task Initialize(Guid postId, Action onStateChanged)
Parameters
postId Guid
onStateChanged Action
Returns
LikeThisPost()
public Task LikeThisPost()
Returns
GoToPostPage()
public void GoToPostPage()
GoToProfilePage()
public void GoToProfilePage()