mirror of
https://github.com/bitwarden/jslib
synced 2026-01-09 12:03:23 +00:00
24 lines
585 B
TypeScript
24 lines
585 B
TypeScript
import { View } from './view';
|
|
|
|
import { Collection } from '../domain/collection';
|
|
import { ITreeNodeObject } from '../domain/treeNode';
|
|
|
|
export class CollectionView implements View, ITreeNodeObject {
|
|
id: string = null;
|
|
organizationId: string = null;
|
|
name: string = null;
|
|
externalId: string = null;
|
|
readOnly: boolean = null;
|
|
|
|
constructor(c?: Collection) {
|
|
if (!c) {
|
|
return;
|
|
}
|
|
|
|
this.id = c.id;
|
|
this.organizationId = c.organizationId;
|
|
this.readOnly = c.readOnly;
|
|
this.externalId = c.externalId;
|
|
}
|
|
}
|