PostPageVmImpl
Namespace: SlottyMedia.Backend.ViewModel.Pages.Post
public class PostPageVmImpl : IPostPageVm
Inheritance Object → PostPageVmImpl
Implements IPostPageVm
Properties
IsLoadingPage
public bool IsLoadingPage { get; private set; }
Property Value
IsLoadingComments
public bool IsLoadingComments { get; private set; }
Property Value
Post
public PostDto Post { get; private set; }
Property Value
Comments
public IPage<CommentDto> Comments { get; private set; }
Property Value
IPage<CommentDto>
AuthPrincipalId
public Nullable<Guid> AuthPrincipalId { get; private set; }
Property Value
Constructors
PostPageVmImpl(IPostService, ICommentService, IAuthService)
Instantiates this VM
public PostPageVmImpl(IPostService postService, ICommentService commentService, IAuthService authService)
Parameters
postService IPostService
commentService ICommentService
authService IAuthService
Methods
Initialize(Guid)
public Task Initialize(Guid postId)
Parameters
postId Guid
Returns
LoadCommentsPage(Int32)
public Task LoadCommentsPage(int pageNumber)
Parameters
pageNumber Int32