import { DebugSession } from "vscode" ; import { v4 as uuidv4 } from "uuid" ; export enum CordovaSessionStatus { NotActivated , Pending , Activated } export class CordovaSession { private sessionId : string ; private vsCodeDebugSession : DebugSession ; private status : CordovaSessionStatus ; constructor ( vsCodeDebugSession ) { this . sessionId = uuidv4 ( ) ; this . vsCodeDebugSession = vsCodeDebugSession ; this . status = CordovaSessionStatus . NotActivated ; } public getSessionId ( ) { return this . sessionId ; } public getVSCodeDebugSession ( ) { return this . vsCodeDebugSession ; } public getStatus ( ) { return this . status ; } public setStatus ( sessionStatus ) { this . status = sessionStatus ; } }