Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Storage

Hierarchy

  • Storage

Index

Constructors

  • new Storage(storages?: default[]): Storage

Properties

#context: string = ''
isEmptyOnBoot: boolean = true
ready: Promise<void>
temp: Record<string, any> = {}

Methods

  • _get(key: string): Promise<any>
  • _set(key: string, value: any): Promise<void[]>
  • clearContext(context: string): Promise<void>
  • copyFromContext(contextFrom: string, contextTo: string): Promise<void>
  • extractFromContext(context: string): Promise<[PlayerState, string, Lang]>
  • get(key: string): Promise<any>
  • isEmptyContext(): boolean
  • loadAdsInfo(): Promise<PlayerAdsInfo>
  • loadConfig(): Promise<PlayerProjectConfig>
  • loadLanguage(): Promise<Lang>
  • loadPlayer(): Promise<PlayerState>
  • loadSecretCode(): Promise<string>
  • migrateToContext(context: string): Promise<(string | PlayerState)[]>
  • saveAdsInfo(info: PlayerAdsInfo): Promise<void | void[]>
  • saveConfig(config: PlayerProjectConfig): Promise<void | void[]>
  • saveLanguage(language: Lang): Promise<void | void[]>
  • savePlayer(playerState: PlayerState): Promise<void | void[]>
  • saveSecretCode(secretCode: string): Promise<void | void[]>
  • set(key: string, value: any): Promise<void[]>
  • setContext(prefix: string): void

Generated using TypeDoc