17 lines
314 B
TypeScript
17 lines
314 B
TypeScript
|
import { View } from './view';
|
||
|
|
||
|
import { Password } from '../domain/password';
|
||
|
|
||
|
export class PasswordHistoryView implements View {
|
||
|
password: string;
|
||
|
lastUsedDate: Date;
|
||
|
|
||
|
constructor(ph?: Password) {
|
||
|
if (!ph) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
this.lastUsedDate = ph.lastUsedDate;
|
||
|
}
|
||
|
}
|