mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 07:13:32 +00:00
* Move CollectionDialog to Vault * Fix CollectionDialogModule imports * Move CollectionAdminService and View to Vault * Move CollectionService to Vault * Split GroupService into internal and public facing classes * Move collection models to vault * lint spacing fix * Move collection spec file * Fix spec import * Update apps/web/src/app/core/core.module.ts Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com> * Remove CoreOrganizationModule from CollectionDialogModule --------- Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
21 lines
772 B
TypeScript
21 lines
772 B
TypeScript
import { BaseResponse } from "../../../models/response/base.response";
|
|
import { CipherResponse } from "../../../vault/models/response/cipher.response";
|
|
import { CollectionResponse } from "../../../vault/models/response/collection.response";
|
|
|
|
export class OrganizationExportResponse extends BaseResponse {
|
|
collections: CollectionResponse[];
|
|
ciphers: CipherResponse[];
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
const collections = this.getResponseProperty("Collections");
|
|
if (collections != null) {
|
|
this.collections = collections.map((c: any) => new CollectionResponse(c));
|
|
}
|
|
const ciphers = this.getResponseProperty("Ciphers");
|
|
if (ciphers != null) {
|
|
this.ciphers = ciphers.map((c: any) => new CipherResponse(c));
|
|
}
|
|
}
|
|
}
|