Skip to content

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

Nullable<Guid>

IsLoadingPage

Indicates whether the page is loading (for the first time)

public abstract bool IsLoadingPage { get; }

Property Value

Boolean

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

Task

LoadPage(Int32)

Loads more posts to the view. Does nothing if all posts have already been fetched.

Task LoadPage(int pageNumber)

Parameters

pageNumber Int32

Returns

Task