t00-multiuser/server/objects/SessionUser.ts

17 lines
No EOL
513 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 apiKey:string;
public readonly validityPeriod:Date;
constructor(userId:number, username:string, userLevel:UserLevel, apiKey:string, validityPeriod:Date) {
this.userId = userId;
this.username = username;
this.userLevel = userLevel;
this.apiKey = apiKey;
this.validityPeriod = validityPeriod;
}
}