FollowerUserRelationRepository
Namespace: SlottyMedia.Database.Repository.FollowerUserRelatioRepo
Repository class for managing follower-user relations in the database.
public class FollowerUserRelationRepository : SlottyMedia.Database.Repository.DatabaseRepository`1[[SlottyMedia.Database.Daos.FollowerUserRelationDao, SlottyMedia.Database, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], SlottyMedia.Database.Repository.IDatabaseRepository`1[[SlottyMedia.Database.Daos.FollowerUserRelationDao, SlottyMedia.Database, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], IFollowerUserRelationRepository
Inheritance Object → DatabaseRepository<FollowerUserRelationDao> → FollowerUserRelationRepository
Implements IDatabaseRepository<FollowerUserRelationDao>, IFollowerUserRelationRepository
Constructors
FollowerUserRelationRepository(Client, DaoHelper, DatabaseRepositroyHelper)
Base constructor for the FollowerUserRelationRepository.
public FollowerUserRelationRepository(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
GetCountOfUserFriends(Guid)
public Task<int> GetCountOfUserFriends(Guid userId)
Parameters
userId Guid
Returns
GetFriends(Guid)
public Task<List<FollowerUserRelationDao>> GetFriends(Guid userId)
Parameters
userId Guid
Returns
Task<List<FollowerUserRelationDao>>
CheckIfUserIsFollowed(Guid, Guid)
public Task<FollowerUserRelationDao> CheckIfUserIsFollowed(Guid userId, Guid followedUserId)
Parameters
userId Guid
followedUserId Guid