mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
[SM-288] Rename models to follow naming convention (#3795)
This commit is contained in:
28
libs/common/src/models/export/event.export.ts
Normal file
28
libs/common/src/models/export/event.export.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { EventType } from "../../enums/eventType";
|
||||
import { EventView } from "../view/event.view";
|
||||
|
||||
export class EventExport {
|
||||
message: string;
|
||||
appIcon: string;
|
||||
appName: string;
|
||||
userId: string;
|
||||
userName: string;
|
||||
userEmail: string;
|
||||
date: string;
|
||||
ip: string;
|
||||
type: string;
|
||||
installationId: string;
|
||||
|
||||
constructor(event: EventView) {
|
||||
this.message = event.humanReadableMessage;
|
||||
this.appIcon = event.appIcon;
|
||||
this.appName = event.appName;
|
||||
this.userId = event.userId;
|
||||
this.userName = event.userName;
|
||||
this.userEmail = event.userEmail;
|
||||
this.date = event.date;
|
||||
this.ip = event.ip;
|
||||
this.type = EventType[event.type];
|
||||
this.installationId = event.installationId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user