public bool AddVote(int? ownerId, int pollId, int answeId)
{
this.Manager.Method("polls.addVote");
this.Manager.Params("poll_id", pollId);
this.Manager.Params("answer_id", answeId);
if (ownerId != null)
{
this.Manager.Params("owner_id", ownerId);
}
XmlNode result = this.Manager.Execute().GetResponseXml();
if (this.Manager.MethodSuccessed)
{
XmlUtils.UseNode(result);
return XmlUtils.BoolVal();
}
return false;
}