15 lines
No EOL
442 B
TypeScript
15 lines
No EOL
442 B
TypeScript
import { UserLevel } from "../enums/UserLevel";
|
|
|
|
export default class SessionUser {
|
|
public readonly userId:number;
|
|
public readonly username:string;
|
|
public readonly userLevel:UserLevel;
|
|
public readonly validityPeriod:Date;
|
|
|
|
constructor(userId:number, username:string, userLevel:UserLevel, validityPeriod:Date) {
|
|
this.userId = userId;
|
|
this.username = username;
|
|
this.userLevel = userLevel;
|
|
this.validityPeriod = validityPeriod;
|
|
}
|
|
} |