1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-27 05:33:29 +00:00
Files
jslib/src/models/response/listResponse.ts
2018-06-26 22:39:39 -04:00

10 lines
276 B
TypeScript

export class ListResponse<T> {
data: T[];
continuationToken: string;
constructor(response: any, t: new (dataResponse: any) => T) {
this.data = response.Data.map((dr: any) => new t(dr));
this.continuationToken = response.ContinuationToken;
}
}