using System.Collections.Generic;
using Sockeye.Models;
namespace Sockeye.DataList
{
    public class DataListReturnData
    {
        public object Data { get; }
        public long TotalRecordCount { get; }
        public object Columns { get; }
        public Dictionary<string, string> SortBy { get; set; }
        public List<DataListFilterOption> Filter { get; set; }
        //All columns that are hidden but are affecting the query (sorting, filtering)
        //so in UI can show that there are hidden columns affecting the result set
        public List<string> HiddenAffectiveColumns {get;set;}

        public DataListReturnData(object returnItems, long totalRecordCount, Newtonsoft.Json.Linq.JArray columns, Dictionary<string, string> sortBy, List<DataListFilterOption> filter, List<string> hiddenAffectiveColumns)
        {
            Data = returnItems;
            TotalRecordCount = totalRecordCount;
            Columns = columns;
            SortBy = sortBy;
            Filter = filter;
            HiddenAffectiveColumns=hiddenAffectiveColumns;
        }
    }//eoc

}//eons