C# Class ApiCore.Polls.PollsFactory

Inheritance: BaseFactory
显示文件 Open project: nolka/vkdotnet

Public Methods

Method Description
AddVote ( int ownerId, int pollId, int answeId ) : bool
DeleteVote ( int ownerId, int pollId, int answeId ) : bool
GetById ( int ownerId, int pollId ) : PollEntry

Get poll information by id

PollsFactory ( ApiManager manager ) : System

Private Methods

Method Description
buildAnswers ( XmlNodeList data ) : PollAnswerCollection

Method Details

AddVote() public method

public AddVote ( int ownerId, int pollId, int answeId ) : bool
ownerId int
pollId int
answeId int
return bool

DeleteVote() public method

public DeleteVote ( int ownerId, int pollId, int answeId ) : bool
ownerId int
pollId int
answeId int
return bool

GetById() public method

Get poll information by id
public GetById ( int ownerId, int pollId ) : PollEntry
ownerId int Poll owner id
pollId int Poll id
return PollEntry

PollsFactory() public method

public PollsFactory ( ApiManager manager ) : System
manager ApiManager
return System