1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-23 03:33:29 +00:00

add two factor apis

This commit is contained in:
Kyle Spearrin
2018-06-26 15:17:14 -04:00
parent 32a636e5a5
commit c3b6baf726
19 changed files with 268 additions and 8 deletions

View File

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