bitwarden-estensione-browser/libs/common/src/models/request/collection.request.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
458 B
TypeScript
Raw Normal View History

2018-06-23 21:41:22 +02:00
import { Collection } from "../domain/collection";
import { SelectionReadOnlyRequest } from "./selection-read-only.request";
2018-07-06 18:40:43 +02:00
2018-06-23 21:41:22 +02:00
export class CollectionRequest {
name: string;
2019-03-07 21:17:58 +01:00
externalId: string;
2018-07-06 18:40:43 +02:00
groups: SelectionReadOnlyRequest[] = [];
2018-06-23 21:41:22 +02:00
2018-07-10 16:06:47 +02:00
constructor(collection?: Collection) {
if (collection == null) {
return;
2018-06-23 21:41:22 +02:00
}
this.name = collection.name ? collection.name.encryptedString : null;
2019-03-07 21:17:58 +01:00
this.externalId = collection.externalId;
2021-12-16 13:36:21 +01:00
}
2018-06-23 21:41:22 +02:00
}