Skip to content

CommentRepository

Namespace: SlottyMedia.Database.Repository.CommentRepo

Repository class for managing comments in the database.

public class CommentRepository : SlottyMedia.Database.Repository.DatabaseRepository`1[[SlottyMedia.Database.Daos.CommentDao, SlottyMedia.Database, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], SlottyMedia.Database.Repository.IDatabaseRepository`1[[SlottyMedia.Database.Daos.CommentDao, SlottyMedia.Database, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], ICommentRepository

Inheritance ObjectDatabaseRepository<CommentDao>CommentRepository
Implements IDatabaseRepository<CommentDao>, ICommentRepository

Constructors

CommentRepository(Client, DaoHelper, DatabaseRepositroyHelper)

Base constructor for the CommentRepository.

public CommentRepository(Client client, DaoHelper daoHelper, DatabaseRepositroyHelper databaseRepositroyHelper)

Parameters

client Client
The Supabase client instance.

daoHelper DaoHelper
The data access object helper instance.

databaseRepositroyHelper DatabaseRepositroyHelper
The database repository helper instance.

Methods

CountCommentsInPost(Guid)

public Task<int> CountCommentsInPost(Guid postId)

Parameters

postId Guid

Returns

Task<Int32>

GetCommentsInPost(Guid, PageRequest)

public Task<IPage<CommentDao>> GetCommentsInPost(Guid postId, PageRequest pageRequest)

Parameters

postId Guid

pageRequest PageRequest

Returns

Task<IPage<CommentDao>>