Interface IResultList<TData>

The IResultList interface splits up the server response in different fragments, namely in:

  • data[]
  • paging
  • res
interface IResultList<TData> {
    data: TData[];
    paging?: Paging<TData>;
    res: IFetchResponse;
}

Type Parameters

  • TData

    generic type

Hierarchy

  • IResultBase<TData>
    • IResultList

Properties

Properties

data: TData[]

Holds the data from server response in a generic way. TData could be of any type, for example:

  • [[IManagedObject]]
  • [[IAlarm]]
  • [[IAuditRecord]]
  • ...

Response data as array.

paging?: Paging<TData>

Paging allows you to query the next and previous data chunks in a convenient way. You can also go to a specific page or just read page information about the current data chunk. For a detailed view see [[Paging]]

Server response of type [[IFetchResponse]].