1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

event apis

This commit is contained in:
Kyle Spearrin
2018-07-06 23:06:38 -04:00
parent c44e633f42
commit 1b7ace0495
4 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import { DeviceType } from '../../enums/deviceType';
import { EventType } from '../../enums/eventType';
export class EventResponse {
type: EventType;
userId: string;
organizationId: string;
cipherId: string;
groupId: string;
organizationUserId: string;
actingUserId: string;
date: Date;
deviceType: DeviceType;
ipAddress: string;
constructor(response: any) {
this.type = response.Type;
this.userId = response.UserId;
this.organizationId = response.OrganizationId;
this.cipherId = response.CipherId;
this.groupId = response.GroupId;
this.organizationUserId = response.OrganizationUserId;
this.actingUserId = response.ActingUserId;
this.date = response.Date;
this.deviceType = response.DeviceType;
this.ipAddress = response.IpAddress;
}
}