ApiCore.Activity.ActivityFactory.Set C# (CSharp) Method

Set() public method

Sets the current user activity
public Set ( string message ) : int
message string Activity message
return int
        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;
        }