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