Server/project/src/context/ContextVariable.ts

31 lines
582 B
TypeScript
Raw Normal View History

import { ContextVariableType } from "@spt/context/ContextVariableType";
2023-03-03 15:23:46 +00:00
export class ContextVariable
{
private value: any;
private timestamp: Date;
private type: ContextVariableType;
constructor(value: any, type: ContextVariableType)
{
this.value = value;
this.timestamp = new Date();
this.type = type;
}
public getValue<T>(): T
{
return this.value;
}
public getTimestamp(): Date
{
return this.timestamp;
}
public getType(): ContextVariableType
{
return this.type;
}
2023-11-15 20:35:05 -05:00
}