mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 02:33:46 +00:00
[SM-288] Rename models to follow naming convention (#3795)
This commit is contained in:
29
libs/common/src/models/view/event.view.ts
Normal file
29
libs/common/src/models/view/event.view.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
installationId: string;
|
||||
|
||||
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;
|
||||
this.installationId = data.installationId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user