bitwarden-estensione-browser/common/src/models/view/eventView.ts

28 lines
726 B
TypeScript
Raw Normal View History

import { EventType } from '../../enums/eventType';
export class EventView {
message: string;
humanReadableMessage: string;
appIcon: string;
appName: string;
userId: string;
userName: string;
userEmail: string;
date: string;
ip: string;
type: EventType;
constructor(data: Required<EventView>) {
this.message = data.message;
this.humanReadableMessage = data.humanReadableMessage;
this.appIcon = data.appIcon;
this.appName = data.appName;
this.userId = data.userId;
this.userName = data.userName;
this.userEmail = data.userEmail;
this.date = data.date;
this.ip = data.ip;
this.type = data.type;
}
}