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

GetAnswers() public method

public GetAnswers ( int qid, QuestionSortMode sort, int needProfiles, int count, int offset ) : List
qid int
sort QuestionSortMode
needProfiles int
count int
offset int
return List
        public List<QuestionAnswer> GetAnswers(int qid, QuestionSortMode? sort, int? needProfiles, int? count, int? offset)
        {
            this.Manager.Method("questions.getAnswers");
            this.Manager.Params("qid", qid);
            if (sort != null)
            {
                this.Manager.Params("sort", sort);
            }
            if (needProfiles != null)
            {
                this.Manager.Params("need_profiles", needProfiles);
            }
            if (count != null)
            {
                this.Manager.Params("count", count);
            }
            if (offset != null)
            {
                this.Manager.Params("offset", offset);
            }
            string resp = this.Manager.Execute().GetResponseString();
            if (this.Manager.MethodSuccessed)
            {
                XmlDocument x = this.Manager.GetXmlDocument(resp);
                if (x.SelectSingleNode("/response").InnerText.Equals("0"))
                {
                    return null;
                }
                return this.buildQuestionAnswersList(x);
            }
            return null;
        }