C# Класс Skimur.App.Services.Impl.VoteService

Наследование: IVoteService
Показать файл Открыть проект

Открытые методы

Метод Описание
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