﻿using System;
using System.Collections.Generic;

namespace Datalist
{
    public class DatalistFilter
    {
        public IList<String> Ids { get; set; }
        public IList<String> CheckIds { get; set; }
        public IList<String> Selected { get; set; }

        public String? Search { get; set; }

        public String? Sort { get; set; }
        public DatalistSortOrder Order { get; set; }

        public Int32 Rows { get; set; }
        public Int32 Offset { get; set; }

        public IDictionary<String, Object?> AdditionalFilters { get; set; }

        public DatalistFilter()
        {
            Ids = new List<String>();
            CheckIds = new List<String>();
            Selected = new List<String>();
            AdditionalFilters = new Dictionary<String, Object?>();
        }
    }
}
