2018-02-19 19:07:19 +01:00
|
|
|
import { SecureNoteType } from '../../enums/secureNoteType';
|
2018-01-24 17:33:15 +01:00
|
|
|
|
|
|
|
import { View } from './view';
|
|
|
|
|
2018-02-19 19:07:19 +01:00
|
|
|
import { SecureNote } from '../domain/secureNote';
|
2018-01-24 17:33:15 +01:00
|
|
|
|
|
|
|
export class SecureNoteView implements View {
|
2019-01-25 15:30:21 +01:00
|
|
|
type: SecureNoteType = null;
|
2018-01-24 17:33:15 +01:00
|
|
|
|
2018-01-25 20:57:42 +01:00
|
|
|
constructor(n?: SecureNote) {
|
|
|
|
if (!n) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2018-01-24 17:33:15 +01:00
|
|
|
this.type = n.type;
|
|
|
|
}
|
2018-01-24 22:58:34 +01:00
|
|
|
|
|
|
|
get subTitle(): string {
|
|
|
|
return null;
|
|
|
|
}
|
2018-01-24 17:33:15 +01:00
|
|
|
}
|