2018-07-27 22:44:20 +02:00
|
|
|
import { View } from "./view";
|
|
|
|
|
|
|
|
import { Password } from "../domain/password";
|
|
|
|
|
|
|
|
export class PasswordHistoryView implements View {
|
2019-01-25 15:30:21 +01:00
|
|
|
password: string = null;
|
|
|
|
lastUsedDate: Date = null;
|
2018-07-27 22:44:20 +02:00
|
|
|
|
|
|
|
constructor(ph?: Password) {
|
|
|
|
if (!ph) {
|
|
|
|
return;
|
|
|
|
}
|
2021-12-16 13:36:21 +01:00
|
|
|
|
2018-07-27 22:44:20 +02:00
|
|
|
this.lastUsedDate = ph.lastUsedDate;
|
2021-12-16 13:36:21 +01:00
|
|
|
}
|
2018-07-27 22:44:20 +02:00
|
|
|
}
|