Beispiel #1
0
        public virtual void GetQuestions(IEnumerable <int> questionIds, Action <IPagedList <Question> > onSuccess, Action <ApiException> onError, QuestionOptions options)
        {
            var sortArgs = options.SortBy.GetAttribute <SortArgsAttribute>();

            string[] urlArgs = sortArgs.UrlArgs.Concat(new string[] { questionIds.Vectorize() }).ToArray();
            GetQuestions(onSuccess, onError, "questions", urlArgs, sortArgs.Sort, GetSortDirection(options.SortDirection), options.Page, options.PageSize, options.IncludeBody, options.IncludeComments, options.IncludeAnswers, options.FromDate, options.ToDate, options.Min, options.Max, options.Tags);
        }
Beispiel #2
0
        public virtual IPagedList <Question> GetQuestions(IEnumerable <int> questionIds, QuestionOptions options)
        {
            var sortArgs = options.SortBy.GetAttribute <SortArgsAttribute>();

            string[] urlArgs = sortArgs.UrlArgs.Concat(new string[] { questionIds.Vectorize() }).ToArray();
            return(GetQuestions("questions", urlArgs, sortArgs.Sort, GetSortDirection(options.SortDirection), options.Page, options.PageSize, options.IncludeBody, options.IncludeComments, options.IncludeAnswers, options.FromDate, options.ToDate, options.Min, options.Max, options.Tags));
        }
Beispiel #3
0
        public virtual void GetQuestions(Action <IPagedList <Question> > onSuccess, Action <ApiException> onError, QuestionOptions options)
        {
            var sortArgs = options.SortBy.GetAttribute <SortArgsAttribute>();

            GetQuestions(onSuccess, onError, "questions", sortArgs.UrlArgs, sortArgs.Sort, GetSortDirection(options.SortDirection), options.Page, options.PageSize, options.IncludeBody, options.IncludeComments, options.IncludeAnswers, options.FromDate, options.ToDate, options.Min, options.Max, options.Tags);
        }
Beispiel #4
0
        public virtual IPagedList <Question> GetQuestions(QuestionOptions options)
        {
            var sortArgs = options.SortBy.GetAttribute <SortArgsAttribute>();

            return(GetQuestions("questions", sortArgs.UrlArgs, sortArgs.Sort, GetSortDirection(options.SortDirection), options.Page, options.PageSize, options.IncludeBody, options.IncludeComments, options.IncludeAnswers, options.FromDate, options.ToDate, options.Min, options.Max, options.Tags));
        }