Skip to content

PostPageVmImpl

Namespace: SlottyMedia.Backend.ViewModel.Pages.Post

public class PostPageVmImpl : IPostPageVm

Inheritance ObjectPostPageVmImpl
Implements IPostPageVm

Properties

IsLoadingPage

public bool IsLoadingPage { get; private set; }

Property Value

Boolean

IsLoadingComments

public bool IsLoadingComments { get; private set; }

Property Value

Boolean

Post

public PostDto Post { get; private set; }

Property Value

PostDto

Comments

public IPage<CommentDto> Comments { get; private set; }

Property Value

IPage<CommentDto>

AuthPrincipalId

public Nullable<Guid> AuthPrincipalId { get; private set; }

Property Value

Nullable<Guid>

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

Task

LoadCommentsPage(Int32)

public Task LoadCommentsPage(int pageNumber)

Parameters

pageNumber Int32

Returns

Task