ApiCore.Questions.QuestionsFactory.MarkAsViewed C# (CSharp) Метод

MarkAsViewed() публичный Метод

public MarkAsViewed ( object qid ) : bool
qid object
Результат 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;
        }