Hierarchy (view full)

Constructors

  • Parameters

    • playerState: Partial<PlayerState> = {}
    • fields: ModelField[]
    • playerAdapter: AbstractPlayerAdapter
    • coreSDk: CoreSDK
    • syncManager: SyncManager
    • updatePlayerData: ((data) => void)
        • (data): void
        • Parameters

          • data: Record<string, string>

          Returns void

    Returns MyPlayer

Properties

#clearedGuestsOnAccount: Record<string, boolean> = {}
#fieldsMap: Record<string, ModelField> = {}
#guestContext: string = ...
#hasCredentialsOnInitContext: boolean = false
#isAutoSyncEnabled: Partial<Record<SyncStorage, (() => void)>> = {}
#lastSyncTime: Partial<Record<SyncStorage, string>> = {}
#limitsFields: ModelField[] = []
#load: ((this) => Promise<void>) = ...

Type declaration

    • (this): Promise<void>
    • Parameters

      Returns Promise<void>

#secretCode: string = ''
#sync: ((this, options?) => Promise<void>) = ...

Type declaration

    • (this, options?): Promise<void>
    • Parameters

      • this: MyPlayer
      • options: PlayerSyncOptions = {}

      Returns Promise<void>

#syncManager: SyncManager
#unsubscribeEverySecond: (() => void) = ...

Type declaration

    • (): void
    • Returns void

#updatePlayerData: ((data) => void)

Type declaration

    • (data): void
    • Parameters

      • data: Record<string, string>

      Returns void

_events: EventLite = ...
_firstReqHash: string
_hasFirstSync: boolean = false
_platformData: any = {}
_wasReset: boolean = false
coreSDk: CoreSDK
credentials: string = ''
fields: ModelField[]
hasAnyCredentials: boolean = false
isFirstRequest: boolean = false
isLoggedIn: boolean = false
isLoggedInByPlatform: boolean = false
isPublicFieldsDirty: boolean = false
modifiedAt: string = ''
playerAdapter: AbstractPlayerAdapter
ready: Promise<void>
secretCode: string = ''
stats: PlayerStats = ...
tempSecredCode: string = ''
updateTime: number

Accessors

Methods

  • Parameters

    • playerState: PlayerState

    Returns Promise<void>

  • Parameters

    • localPlayer: PlayerState
    • player: PlayerState

    Returns PlayerState

  • Parameters

    • result: PlayerOutput
    • progressSaveFormat: ProgressSaveFormat

    Returns Promise<void>

  • Parameters

    • newCredentials: string
    • newId: number
    • oldCredentials: string
    • oldId: number

    Returns Promise<boolean>

  • Parameters

    • playerInfo: PlatformPlayerState | {
          name: string;
          photoLarge: string;
      }
    • silent: boolean

    Returns Promise<void>

  • Private

    Parameters

    • key: string
    • value: string | number | boolean

    Returns string | number | boolean

  • Parameters

    • __namedParameters: {
          storage?: SyncStorage;
      } = {}
      • Optional storage?: SyncStorage

    Returns void

  • Parameters

    • __namedParameters: {
          interval: number;
          override?: boolean;
          storage?: SyncStorage;
      } = ...
      • interval: number
      • Optional override?: boolean
      • Optional storage?: SyncStorage

    Returns void

  • Parameters

    • tempContexts: string[]
    • context: string

    Returns Promise<void>

  • Parameters

    • options: {
          withSecretCode?: boolean;
      } = {}
      • Optional withSecretCode?: boolean

    Returns Promise<boolean>