1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-09 20:13:28 +00:00
Files
jslib/common/src/models/export/eventExport.ts
2022-05-19 09:58:56 -05:00

29 lines
715 B
TypeScript

import { EventType } from "../../enums/eventType";
import { EventView } from "../view/eventView";
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;
}
}