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

MarkAsViewed() public method

public MarkAsViewed ( object qid ) : bool
qid object
return bool
        public bool MarkAsViewed(object qid)
        {
            this.Manager.Method("questions.markAsViewed");
            if (qid != null)
            {
                if (qid is int)
                {
                    this.Manager.Params("aids", qid);
                }
                if (qid is string)
                {
                    this.Manager.Params("aids", qid);
                }
            }
            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;
        }