t00-multiuser/server/objects/SessionUser.ts

15 lines
442 B
TypeScript
Raw Normal View History

2024-09-26 00:47:08 +01:00
import { UserLevel } from "../enums/UserLevel";
export default class SessionUser {
public readonly userId:number;
2024-09-28 14:31:02 +01:00
public readonly username:string;
2024-09-26 00:47:08 +01:00
public readonly userLevel:UserLevel;
public readonly validityPeriod:Date;
2024-09-28 14:31:02 +01:00
constructor(userId:number, username:string, userLevel:UserLevel, validityPeriod:Date) {
this.userId = userId;
2024-09-28 14:31:02 +01:00
this.username = username;
2024-09-26 00:47:08 +01:00
this.userLevel = userLevel;
this.validityPeriod = validityPeriod;
}
}