openreplay/frontend/app/components/DataManagement/UsersEvents/data/User.ts
2025-02-14 12:32:45 +01:00

35 lines
710 B
TypeScript

export default class User {
name: string;
userId: string;
distinctId: string[];
userLocation: string;
cohorts: string[];
properties: Record<string, any>;
updatedAt: number;
constructor({
name,
userId,
distinctId,
userLocation,
cohorts,
properties,
updatedAt
}: {
name: string;
userId: string;
distinctId: string[];
userLocation: string;
cohorts: string[];
properties: Record<string, any>;
updatedAt: number;
}) {
this.name = name;
this.userId = userId;
this.distinctId = distinctId;
this.userLocation = userLocation;
this.cohorts = cohorts;
this.properties = properties;
this.updatedAt = updatedAt;
}
}