1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 10:43:35 +00:00
Files
browser/src/models/response/breachAccountResponse.ts
2018-06-28 11:57:29 -04:00

30 lines
875 B
TypeScript

export class BreachAccountResponse {
addedDate: Date;
breachDate: Date;
dataClasses: string[];
description: string;
domain: string;
isActive: boolean;
isVerified: boolean;
logoType: string;
modifiedDate: Date;
name: string;
pwnCount: number;
title: string;
constructor(response: any) {
this.addedDate = response.AddedDate;
this.breachDate = response.BreachDate;
this.dataClasses = response.DataClasses;
this.description = response.Description;
this.domain = response.Domain;
this.isActive = response.IsActive;
this.isVerified = response.IsVerified;
this.logoType = response.LogoType;
this.modifiedDate = response.ModifiedDate;
this.name = response.Name;
this.pwnCount = response.PwnCount;
this.title = response.Title;
}
}