2017-12-24 04:02:57 -05:00
|
|
|
import { FE_Integration } from "./models/integration";
|
2017-12-22 23:08:10 -05:00
|
|
|
|
|
|
|
export class SessionStorage {
|
|
|
|
|
2019-07-01 22:49:44 -04:00
|
|
|
private static _scalarToken: string;
|
|
|
|
|
|
|
|
public static get scalarToken(): string {
|
|
|
|
if (this._scalarToken) return this._scalarToken;
|
|
|
|
this.scalarToken = localStorage.getItem("dimension_scalar_token");
|
|
|
|
return this._scalarToken;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static set scalarToken(val: string) {
|
|
|
|
this._scalarToken = val;
|
|
|
|
if (val) {
|
|
|
|
localStorage.setItem("dimension_scalar_token", val);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-22 23:08:10 -05:00
|
|
|
public static userId: string;
|
|
|
|
public static roomId: string;
|
2017-12-23 20:47:41 -05:00
|
|
|
public static isAdmin: boolean;
|
2017-12-24 04:02:57 -05:00
|
|
|
public static editIntegration: FE_Integration;
|
2017-12-22 23:42:43 -05:00
|
|
|
public static editIntegrationId: string;
|
2017-12-23 00:17:09 -05:00
|
|
|
public static editsRequested = 0;
|
2017-12-22 23:08:10 -05:00
|
|
|
|
|
|
|
private constructor() {
|
|
|
|
}
|
|
|
|
}
|