1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-19 17:53:48 +00:00
Files
jslib/src/models/response/listResponse.ts
2018-06-26 15:17:14 -04:00

10 lines
271 B
TypeScript

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