C# 클래스 Nop.Services.Polls.PollService

Poll service
상속: IPollService
파일 보기 프로젝트 열기: emilianionascu/NopCommerce

공개 메소드들

메소드 설명
AlreadyVoted ( int pollId, int customerId ) : bool

Gets a value indicating whether customer already vited for this poll

DeletePoll ( Nop.Core.Domain.Polls.Poll poll ) : void

Deletes a poll

DeletePollAnswer ( Nop.Core.Domain.Polls.PollAnswer pollAnswer ) : void

Deletes a poll answer

GetPollAnswerById ( int pollAnswerId ) : Nop.Core.Domain.Polls.PollAnswer

Gets a poll answer

GetPollById ( int pollId ) : Nop.Core.Domain.Polls.Poll

Gets a poll

GetPollBySystemKeyword ( string systemKeyword, int languageId ) : Nop.Core.Domain.Polls.Poll

Gets a poll

GetPolls ( int languageId, bool loadShownOnHomePageOnly, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList

Gets poll collection

InsertPoll ( Nop.Core.Domain.Polls.Poll poll ) : void

Inserts a poll

PollService ( IRepository pollRepository, IRepository pollAnswerRepository, IRepository pollVotingRecords, ICacheManager cacheManager, IEventPublisher eventPublisher ) : System
UpdatePoll ( Nop.Core.Domain.Polls.Poll poll ) : void

Updates the poll

메소드 상세

AlreadyVoted() 공개 메소드

Gets a value indicating whether customer already vited for this poll
public AlreadyVoted ( int pollId, int customerId ) : bool
pollId int Poll identifier
customerId int Customer identifier
리턴 bool

DeletePoll() 공개 메소드

Deletes a poll
public DeletePoll ( Nop.Core.Domain.Polls.Poll poll ) : void
poll Nop.Core.Domain.Polls.Poll The poll
리턴 void

DeletePollAnswer() 공개 메소드

Deletes a poll answer
public DeletePollAnswer ( Nop.Core.Domain.Polls.PollAnswer pollAnswer ) : void
pollAnswer Nop.Core.Domain.Polls.PollAnswer Poll answer
리턴 void

GetPollAnswerById() 공개 메소드

Gets a poll answer
public GetPollAnswerById ( int pollAnswerId ) : Nop.Core.Domain.Polls.PollAnswer
pollAnswerId int Poll answer identifier
리턴 Nop.Core.Domain.Polls.PollAnswer

GetPollById() 공개 메소드

Gets a poll
public GetPollById ( int pollId ) : Nop.Core.Domain.Polls.Poll
pollId int The poll identifier
리턴 Nop.Core.Domain.Polls.Poll

GetPollBySystemKeyword() 공개 메소드

Gets a poll
public GetPollBySystemKeyword ( string systemKeyword, int languageId ) : Nop.Core.Domain.Polls.Poll
systemKeyword string The poll system keyword
languageId int Language identifier. 0 if you want to get all polls
리턴 Nop.Core.Domain.Polls.Poll

GetPolls() 공개 메소드

Gets poll collection
public GetPolls ( int languageId, bool loadShownOnHomePageOnly, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList
languageId int Language identifier. 0 if you want to get all polls
loadShownOnHomePageOnly bool Retrieve only shown on home page polls
pageIndex int Page index
pageSize int Page size
showHidden bool A value indicating whether to show hidden records
리턴 IPagedList

InsertPoll() 공개 메소드

Inserts a poll
public InsertPoll ( Nop.Core.Domain.Polls.Poll poll ) : void
poll Nop.Core.Domain.Polls.Poll Poll
리턴 void

PollService() 공개 메소드

public PollService ( IRepository pollRepository, IRepository pollAnswerRepository, IRepository pollVotingRecords, ICacheManager cacheManager, IEventPublisher eventPublisher ) : System
pollRepository IRepository
pollAnswerRepository IRepository
pollVotingRecords IRepository
cacheManager ICacheManager
eventPublisher IEventPublisher
리턴 System

UpdatePoll() 공개 메소드

Updates the poll
public UpdatePoll ( Nop.Core.Domain.Polls.Poll poll ) : void
poll Nop.Core.Domain.Polls.Poll Poll
리턴 void