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

Inheritance: IVoteService
Mostra file Open project: skimur/skimur

Public Methods

Method 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 method

public GetTotalVotesForComment ( System.Guid commentId, int &upVotes, int &downVotes ) : void
commentId System.Guid
upVotes int
downVotes int
return void

GetTotalVotesForPost() public method

public GetTotalVotesForPost ( System.Guid postId, int &upVotes, int &downVotes ) : void
postId System.Guid
upVotes int
downVotes int
return void

GetVoteForUserOnComment() public method

public GetVoteForUserOnComment ( System.Guid userId, System.Guid commentId ) : VoteType?
userId System.Guid
commentId System.Guid
return VoteType?

GetVoteForUserOnPost() public method

public GetVoteForUserOnPost ( System.Guid userId, System.Guid postId ) : VoteType?
userId System.Guid
postId System.Guid
return VoteType?

GetVotesOnCommentsByUser() public method

public GetVotesOnCommentsByUser ( System.Guid userId, List comments ) : VoteType>.Dictionary
userId System.Guid
comments List
return VoteType>.Dictionary

GetVotesOnPostsByUser() public method

public GetVotesOnPostsByUser ( System.Guid userId, List posts ) : VoteType>.Dictionary
userId System.Guid
posts List
return VoteType>.Dictionary

UnVoteComment() public method

public UnVoteComment ( System.Guid commentId, System.Guid userId ) : void
commentId System.Guid
userId System.Guid
return void

UnVotePost() public method

public UnVotePost ( System.Guid postId, System.Guid userId ) : void
postId System.Guid
userId System.Guid
return void

VoteForComment() public method

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
return void

VoteForPost() public method

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
return void

VoteService() public method

public VoteService ( IDbConnectionProvider conn ) : System
conn IDbConnectionProvider
return System