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-28 14:31:02 +01:00
|
|
|
public readonly username:string;
|
2024-09-26 00:47:08 +01:00
|
|
|
public readonly userLevel:UserLevel;
|
2024-10-13 14:13:33 +01:00
|
|
|
public readonly apiKey:string;
|
2024-04-23 00:58:07 +01:00
|
|
|
public readonly validityPeriod:Date;
|
|
|
|
|
2024-10-13 14:13:33 +01:00
|
|
|
constructor(userId:number, username:string, userLevel:UserLevel, apiKey:string, validityPeriod:Date) {
|
2024-04-23 00:58:07 +01:00
|
|
|
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;
|
2024-10-13 14:13:33 +01:00
|
|
|
this.apiKey = apiKey;
|
2024-04-23 00:58:07 +01:00
|
|
|
this.validityPeriod = validityPeriod;
|
|
|
|
}
|
|
|
|
}
|