mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
event apis
This commit is contained in:
28
src/models/response/eventResponse.ts
Normal file
28
src/models/response/eventResponse.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user