public int Set(string message)
{
this.Manager.Method("activity.set");
this.Manager.Params("text", message);
string resp = this.Manager.Execute().GetResponseString();
if (this.Manager.MethodSuccessed)
{
XmlDocument x = this.Manager.GetXmlDocument(resp);
return Convert.ToInt32(x.SelectSingleNode("/response").InnerText);
}
return -1;
}