EUS/objects/SessionUser.ts

15 lines
436 B
TypeScript
Raw Normal View History

2025-01-01 02:18:50 +00:00
import UserType from "../enums/UserType";
export default class SessionUser {
2025-01-05 14:22:18 +00:00
public readonly userId: number;
public readonly username: string;
public readonly userType: UserType;
public readonly validityPeriod: Date;
2025-01-01 02:18:50 +00:00
2025-01-05 14:22:18 +00:00
constructor(userId:number, username: string, userType: UserType, validityPeriod:Date) {
2025-01-01 02:18:50 +00:00
this.userId = userId;
2025-01-05 14:22:18 +00:00
this.username = username;
2025-01-01 02:18:50 +00:00
this.userType = userType;
this.validityPeriod = validityPeriod;
}
}