Skip to content

IForumSearchRepository

Namespace: SlottyMedia.Database.Repository.SearchRepo

Interface for the Forum Search Repository.

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

Implements IDatabaseRepository<ForumDao>

Methods

GetForumsByTopic(String)

Gets forums by a specific topic with pagination.

Task<List<ForumDao>> GetForumsByTopic(string topic)

Parameters

topic String
The topic to search for.

Returns

Task<List<ForumDao>>
A task that represents the asynchronous operation. The task result contains a list of 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