public List<QuestionEntry> Get(object qid, QuestionSortMode? sort, int? needProfiles, string nameCase, int? count, int? offset)
{
this.Manager.Method("questions.get");
if (qid != null)
{
if (qid is int)
{
this.Manager.Params("qid",qid);
}
if (qid is string)
{
this.Manager.Params("uids", qid);
}
}
if (sort != null)
{
this.Manager.Params("sort", sort);
}
if (needProfiles != null)
{
this.Manager.Params("need_profiles", needProfiles);
}
if (nameCase != null)
{
this.Manager.Params("name_case", nameCase);
}
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.buildQuestionEntryList(x);
}
return null;
}