public int PutTag(int? ownerId, int photoId, int userId, float x, float y, float x2, float y2)
{
this.Manager.Method("photos.putTag");
this.Manager.Params("pid", photoId);
this.Manager.Params("uid", userId);
this.Manager.Params("x", x);
this.Manager.Params("y", y);
this.Manager.Params("x2", x2);
this.Manager.Params("y2", y2);
if (ownerId != null)
{
this.Manager.Params("owner_id", ownerId);
}
XmlNode result = this.Manager.Execute().GetResponseXml();
if (this.Manager.MethodSuccessed)
{
XmlUtils.UseNode(result);
return XmlUtils.IntVal();
}
return -1;
}