2024-09-26 00:47:08 +01:00
|
|
|
import { UserLevel } from "../enums/UserLevel";
|
|
|
|
|
2024-04-23 00:58:07 +01:00
|
|
|
export default class SessionUser {
|
|
|
|
public readonly userId:number;
|
2024-09-26 00:47:08 +01:00
|
|
|
public readonly userLevel:UserLevel;
|
2024-04-23 00:58:07 +01:00
|
|
|
public readonly validityPeriod:Date;
|
|
|
|
|
2024-09-26 00:47:08 +01:00
|
|
|
constructor(userId:number, userLevel:UserLevel, validityPeriod:Date) {
|
2024-04-23 00:58:07 +01:00
|
|
|
this.userId = userId;
|
2024-09-26 00:47:08 +01:00
|
|
|
this.userLevel = userLevel;
|
2024-04-23 00:58:07 +01:00
|
|
|
this.validityPeriod = validityPeriod;
|
|
|
|
}
|
|
|
|
}
|