Skip to content

Instantly share code, notes, and snippets.

@christopherbauer
Created August 25, 2015 02:36
Show Gist options
  • Select an option

  • Save christopherbauer/8207c71498f9f8872fe8 to your computer and use it in GitHub Desktop.

Select an option

Save christopherbauer/8207c71498f9f8872fe8 to your computer and use it in GitHub Desktop.
public class DataTableParameters
{
/// <summary>
/// Draw counter which is used by data tables to ensure ajax requests are drawn in sequence
/// </summary>
public int draw { get; set; }
/// <summary>
/// Paging first record indicator, the start point of the current data
/// </summary>
public int start { get; set; }
/// <summary>
/// Number of records the table is set to display for the current draw
/// </summary>
public int length { get; set; }
/// <summary>
/// Columns to which ordering has been applied
/// </summary>
public order[] order { get; set; }
/// <summary>
/// List of columns and data sources
/// </summary>
public column[] columns { get; set; }
/// <summary>
/// Global search value, applied to all columns which are searchable: true
/// </summary>
public search search { get; set; }
}
public class order
{
/// <summary>
/// Column index to order
/// </summary>
public int column { get; set; }
/// <summary>
/// Ordering direction
/// </summary>
public string dir { get; set; }
}
public class column
{
/// <summary>
/// Columns datasource
/// </summary>
public string data { get; set; }
/// <summary>
/// Columns name
/// </summary>
public string name { get; set; }
public bool searchable { get; set; }
public bool orderable { get; set; }
/// <summary>
/// Search value which applies to this column
/// </summary>
public search search { get; set; }
}
public class search
{
public string value { get; set; }
public bool regex { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment