42 lines
952 B
C#
42 lines
952 B
C#
using System.Collections.Generic;
|
|
using AyaNova.Models;
|
|
|
|
namespace AyaNova.Api.ControllerHelpers
|
|
{
|
|
|
|
|
|
|
|
public class ApiPagedResponse<T>
|
|
{
|
|
|
|
public T[] items { get; }
|
|
public object PageLinks { get; }
|
|
public object Columns { get; }
|
|
|
|
public ApiPagedResponse(T[] returnItems, object pageLinks, object columns = null)
|
|
{
|
|
items = returnItems;
|
|
PageLinks = pageLinks;
|
|
Columns = Columns;
|
|
|
|
}
|
|
}//eoc
|
|
|
|
public class ApiPagedResponse
|
|
{
|
|
|
|
public object items { get; }
|
|
public object PageLinks { get; }
|
|
public Newtonsoft.Json.Linq.JArray Columns { get; }
|
|
|
|
public ApiPagedResponse(object returnItems, object pageLinks, Newtonsoft.Json.Linq.JArray columns)
|
|
{
|
|
items = returnItems;
|
|
PageLinks = pageLinks;
|
|
Columns = columns;
|
|
|
|
}
|
|
}//eoc
|
|
|
|
|
|
}//eons |