C# Class Skimur.App.Services.Impl.VoteService

Inheritance: IVoteService
Afficher le fichier Open project: skimur/skimur

Méthodes publiques

Méthode Description
GetTotalVotesForComment ( System.Guid commentId, int &upVotes, int &downVotes ) : void
GetTotalVotesForPost ( System.Guid postId, int &upVotes, int &downVotes ) : void
GetVoteForUserOnComment ( System.Guid userId, System.Guid commentId ) : VoteType?
GetVoteForUserOnPost ( System.Guid userId, System.Guid postId ) : VoteType?
GetVotesOnCommentsByUser ( System.Guid userId, List comments ) : VoteType>.Dictionary
GetVotesOnPostsByUser ( System.Guid userId, List posts ) : VoteType>.Dictionary
UnVoteComment ( System.Guid commentId, System.Guid userId ) : void
UnVotePost ( System.Guid postId, System.Guid userId ) : void
VoteForComment ( System.Guid commentId, System.Guid userId, string ipAddress, VoteType voteType, System.DateTime dateCasted ) : void
VoteForPost ( System.Guid postId, System.Guid userId, string ipAddress, VoteType voteType, System.DateTime dateCasted ) : void
VoteService ( IDbConnectionProvider conn ) : System

Method Details

GetTotalVotesForComment() public méthode

public GetTotalVotesForComment ( System.Guid commentId, int &upVotes, int &downVotes ) : void
commentId System.Guid
upVotes int
downVotes int
Résultat void

GetTotalVotesForPost() public méthode

public GetTotalVotesForPost ( System.Guid postId, int &upVotes, int &downVotes ) : void
postId System.Guid
upVotes int
downVotes int
Résultat void

GetVoteForUserOnComment() public méthode

public GetVoteForUserOnComment ( System.Guid userId, System.Guid commentId ) : VoteType?
userId System.Guid
commentId System.Guid
Résultat VoteType?

GetVoteForUserOnPost() public méthode

public GetVoteForUserOnPost ( System.Guid userId, System.Guid postId ) : VoteType?
userId System.Guid
postId System.Guid
Résultat VoteType?

GetVotesOnCommentsByUser() public méthode

public GetVotesOnCommentsByUser ( System.Guid userId, List comments ) : VoteType>.Dictionary
userId System.Guid
comments List
Résultat VoteType>.Dictionary

GetVotesOnPostsByUser() public méthode

public GetVotesOnPostsByUser ( System.Guid userId, List posts ) : VoteType>.Dictionary
userId System.Guid
posts List
Résultat VoteType>.Dictionary

UnVoteComment() public méthode

public UnVoteComment ( System.Guid commentId, System.Guid userId ) : void
commentId System.Guid
userId System.Guid
Résultat void

UnVotePost() public méthode

public UnVotePost ( System.Guid postId, System.Guid userId ) : void
postId System.Guid
userId System.Guid
Résultat void

VoteForComment() public méthode

public VoteForComment ( System.Guid commentId, System.Guid userId, string ipAddress, VoteType voteType, System.DateTime dateCasted ) : void
commentId System.Guid
userId System.Guid
ipAddress string
voteType VoteType
dateCasted System.DateTime
Résultat void

VoteForPost() public méthode

public VoteForPost ( System.Guid postId, System.Guid userId, string ipAddress, VoteType voteType, System.DateTime dateCasted ) : void
postId System.Guid
userId System.Guid
ipAddress string
voteType VoteType
dateCasted System.DateTime
Résultat void

VoteService() public méthode

public VoteService ( IDbConnectionProvider conn ) : System
conn IDbConnectionProvider
Résultat System