mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
25 lines
506 B
TypeScript
25 lines
506 B
TypeScript
import { SecureNoteType } from '../../enums/secureNoteType';
|
|
|
|
import { SecureNoteData } from '../data/secureNoteData';
|
|
|
|
import Domain from './domain';
|
|
|
|
export class SecureNote extends Domain {
|
|
type: SecureNoteType;
|
|
|
|
constructor(obj?: SecureNoteData, alreadyEncrypted: boolean = false) {
|
|
super();
|
|
if (obj == null) {
|
|
return;
|
|
}
|
|
|
|
this.type = obj.type;
|
|
}
|
|
|
|
decrypt(orgId: string): any {
|
|
return {
|
|
type: this.type,
|
|
};
|
|
}
|
|
}
|