API ReferenceGlobalsDataSyncer

# Class: DataSyncer

# Hierarchy

  • DataSyncer

# Implements

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

+ new DataSyncer(creator: string): DataSyncer

Defined in packages/common-core/src/services/data-syncer.ts:57

Parameters:

Name Type
creator string

Returns: DataSyncer

# Properties

# creator

creator: string

_Implementation of Context.creator_

Defined in packages/common-core/src/services/data-syncer.ts:31

# Methods

# _syncTypeChangeTag

_syncTypeChangeTag(tagId: RapiId): Promise‹any›

Defined in packages/common-core/src/services/data-syncer.ts:110

Parameters:

Name Type
tagId RapiId

Returns: Promise‹any›


# getIsCatalogSynced

getIsCatalogSynced(catalogId: RapiId): boolean

Defined in packages/common-core/src/services/data-syncer.ts:133

Parameters:

Name Type
catalogId RapiId

Returns: boolean


# onCommand

onCommand(command: WORKER_MESSAGE, conversationId: number, data: any): void

Implementation of CommunicationInterfaceCallback

Defined in packages/common-core/src/services/data-syncer.ts:159

Parameters:

Name Type
command WORKER_MESSAGE
conversationId number
data any

Returns: void


# preFillAssetCache

preFillAssetCache(key: string, url: string): void

Defined in packages/common-core/src/services/data-syncer.ts:289

Parameters:

Name Type
key string
url string

Returns: void


# requestAsset

requestAsset(url: string, urlAsFallback: boolean): AssetUrl

Defined in packages/common-core/src/services/data-syncer.ts:276

Parameters:

Name Type Default
url string -
urlAsFallback boolean false

Returns: AssetUrl


# setAlwaysUseCache

setAlwaysUseCache(alwaysUseCache: boolean): void

Defined in packages/common-core/src/services/data-syncer.ts:284

Parameters:

Name Type
alwaysUseCache boolean

Returns: void


# start

start(catalogId: RapiId): Promise‹void›

Defined in packages/common-core/src/services/data-syncer.ts:63

Parameters:

Name Type
catalogId RapiId

Returns: Promise‹void›


# syncCatalog

syncCatalog(catalogId: RapiId): Promise‹void›

Defined in packages/common-core/src/services/data-syncer.ts:80

Parameters:

Name Type
catalogId RapiId

Returns: Promise‹void›


# syncFloorTag

syncFloorTag(tagId: RapiId): Promise‹any›

Defined in packages/common-core/src/services/data-syncer.ts:84

Parameters:

Name Type
tagId RapiId

Returns: Promise‹any›


# syncTypeChangeTag

syncTypeChangeTag(tagId: RapiId): Promise‹any›

Defined in packages/common-core/src/services/data-syncer.ts:88

Parameters:

Name Type
tagId RapiId

Returns: Promise‹any›