C# 클래스 Skimur.App.Services.Impl.VoteService

상속: IVoteService
파일 보기 프로젝트 열기: skimur/skimur

공개 메소드들

메소드 설명
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

메소드 상세

GetTotalVotesForComment() 공개 메소드

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

GetTotalVotesForPost() 공개 메소드

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

GetVoteForUserOnComment() 공개 메소드

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

GetVoteForUserOnPost() 공개 메소드

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

GetVotesOnCommentsByUser() 공개 메소드

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

GetVotesOnPostsByUser() 공개 메소드

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

UnVoteComment() 공개 메소드

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

UnVotePost() 공개 메소드

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

VoteForComment() 공개 메소드

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
리턴 void

VoteForPost() 공개 메소드

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
리턴 void

VoteService() 공개 메소드

public VoteService ( IDbConnectionProvider conn ) : System
conn IDbConnectionProvider
리턴 System