ApiCore.Questions.QuestionsFactory.AddAnswer C# (CSharp) Method

AddAnswer() public method

public AddAnswer ( int u_id, int q_id, string text ) : bool
u_id int
q_id int
text string
return bool
        public bool AddAnswer(int u_id, int q_id, string text)
        {
            this.Manager.Method("questions.addAnswer");
            this.Manager.Params("uid", u_id);
            this.Manager.Params("qid", q_id);
            this.Manager.Params("text", text);
            string resp = this.Manager.Execute().GetResponseString();
            if (this.Manager.MethodSuccessed)
            {
                XmlDocument x = this.Manager.GetXmlDocument(resp);
                return ((x.SelectSingleNode("/response").InnerText == "1") ? true : false);
            }
            return false;
        }