Skip to content

ITopForumRepository

Namespace: SlottyMedia.Database.Repository.ForumRepo

Interface for the Top Forum Repository.

public interface ITopForumRepository : SlottyMedia.Database.Repository.IDatabaseRepository`1[[SlottyMedia.Database.Daos.TopForumDao, SlottyMedia.Database, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Implements IDatabaseRepository<TopForumDao>

Methods

DetermineRecentSpaces()

Determines the recent spaces.

Task<List<TopForumDao>> DetermineRecentSpaces()

Returns

Task<List<TopForumDao>>
A task that represents the asynchronous operation. The task result contains a list of recent spaces.

Exceptions

DatabaseMissingItemException
Thrown when the entity is not found in the database.

GeneralDatabaseException
Thrown when an unexpected error occurs.

DatabaseJsonConvertFailed
Thrown when the Database Result was not able to be converted to a Class Dao

GetTopForums()

Gets the top forums.

Task<List<TopForumDao>> GetTopForums()

Returns

Task<List<TopForumDao>>
A task that represents the asynchronous operation. The task result contains a list of top forums.

Exceptions

DatabaseMissingItemException
Thrown when the entity is not found in the database.

GeneralDatabaseException
Thrown when an unexpected error occurs.

DatabaseJsonConvertFailed
Thrown when the Database Result was not able to be converted to a Class Dao