IHomePageVm
Namespace: SlottyMedia.Backend.ViewModel.Pages.Home
This ViewModel represents the state of the page.
public interface IHomePageVm
Properties
AuthPrincipalId
The ID of the currently logged in user.
public abstract Nullable<Guid> AuthPrincipalId { get; }
Property Value
IsLoadingPage
Indicates whether the page is loading (for the first time)
public abstract bool IsLoadingPage { get; }
Property Value
Page
The posts that will be showcased
public abstract IPage<PostDto> Page { get; }
Property Value
IPage<PostDto>
Methods
Initialize()
Initializes this ViewModel, which counts the total number of existing posts and loads the first few posts into the view.
Task Initialize()
Returns
LoadPage(Int32)
Loads more posts to the view. Does nothing if all posts have already been fetched.
Task LoadPage(int pageNumber)
Parameters
pageNumber Int32