IFollowerUserRelationRepository
Namespace: SlottyMedia.Database.Repository.FollowerUserRelatioRepo
Interface for the Follower User Relation Repository.
public interface IFollowerUserRelationRepository : SlottyMedia.Database.Repository.IDatabaseRepository`1[[SlottyMedia.Database.Daos.FollowerUserRelationDao, SlottyMedia.Database, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]
Implements IDatabaseRepository<FollowerUserRelationDao>
Methods
GetCountOfUserFriends(Guid)
Gets the count of friends for a specific user.
Task<int> GetCountOfUserFriends(Guid userId)
Parameters
userId Guid
The unique identifier of the user.
Returns
Task<Int32>
A task that represents the asynchronous operation. The task result contains the count of friends.
Exceptions
DatabaseMissingItemException
Thrown when the entity is not found in the database.
GeneralDatabaseException
Thrown when an unexpected error occurs.
GetFriends(Guid)
Gets the list of friends for a specific user.
Task<List<FollowerUserRelationDao>> GetFriends(Guid userId)
Parameters
userId Guid
The unique identifier of the user.
Returns
Task<List<FollowerUserRelationDao>>
A task that represents the asynchronous operation. The task result contains the list of friends.
Exceptions
DatabaseMissingItemException
Thrown when the entity is not found in the database.
GeneralDatabaseException
Thrown when an unexpected error occurs.
CheckIfUserIsFollowed(Guid, Guid)
Checks if a user is followed by another user.
Task<FollowerUserRelationDao> CheckIfUserIsFollowed(Guid userId, Guid followedUserId)
Parameters
userId Guid
The unique identifier of the user.
followedUserId Guid
The unique identifier of the followed user.
Returns
Task<FollowerUserRelationDao>
A task that represents the asynchronous operation. The task result contains the follower user relation.
Exceptions
DatabaseMissingItemException
Thrown when the entity is not found in the database.
GeneralDatabaseException
Thrown when an unexpected error occurs.