IUserLikePostRelationRepostitory
Namespace: SlottyMedia.Database.Repository.UserLikePostRelationRepo
Interface for the User Like Post Relation Repository.
public interface IUserLikePostRelationRepostitory : SlottyMedia.Database.Repository.IDatabaseRepository`1[[SlottyMedia.Database.Daos.UserLikePostRelationDao, SlottyMedia.Database, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]
Implements IDatabaseRepository<UserLikePostRelationDao>
Methods
GetLikesForPost(Guid)
Gets the likes for a specific post.
Task<List<UserLikePostRelationDao>> GetLikesForPost(Guid postId)
Parameters
postId Guid
The unique identifier of the post.
Returns
Task<List<UserLikePostRelationDao>>
A task that represents the asynchronous operation. The task result contains a list of user like post
relations.
Exceptions
DatabaseMissingItemException
Thrown when the entity is not found in the database.
GeneralDatabaseException
Thrown when an unexpected error occurs.
GetLikeByUserIdAndPostId(Guid, Guid)
Gets the like for a specific post by a specific user.
Task<UserLikePostRelationDao> GetLikeByUserIdAndPostId(Guid userId, Guid postId)
Parameters
userId Guid
The unique identifier of the user.
postId Guid
The unique identifier of the post.
Returns
Task<UserLikePostRelationDao>
A task that represents the asynchronous operation. The task result contains the user like post relation.
Exceptions
DatabaseMissingItemException
Thrown when the entity is not found in the database.
GeneralDatabaseException
Thrown when an unexpected error occurs.