Skip to content

ISpacesCardVm

Namespace: SlottyMedia.Backend.ViewModel.Partial.MainLayout

This ViewModel represents the state of the SpacesCard component.

public interface ISpacesCardVm

Properties

TrendingSpaces

A list containing all trending spaces

public abstract List<ForumDto> TrendingSpaces { get; set; }

Property Value

List<ForumDto>

RecentSpaces

A list containing all recent spaces

public abstract List<ForumDto> RecentSpaces { get; set; }

Property Value

List<ForumDto>

NumOfPostsInSpace

A dictionary that maps a space ID to the toal number of posts in that space. Only spaces listed in ISpacesCardVm.TrendingSpaces and ISpacesCardVm.RecentSpaces will be considered.

public abstract Dictionary<Guid, int> NumOfPostsInSpace { get; set; }

Property Value

Dictionary<Guid, Int32>

Methods

Fetch()

Fetches all trending spaces, recent spaces and evaluates how many posts exist per space.

Task Fetch()

Returns

Task