DataManager
classe · Source
Manages the API methods of a data model along with a collection of instances.
Extends: BaseManager
Properties
holds
holds: function
The data structure belonging to this manager. Source
cache
cache: Collection
The cache of items for this manager. Source
client
client: Client
The client that instantiated this Manager Source
Methods
resolve
resolve(idOrInstance: string | Object): Object
Resolves a data entry to a data Object. Parameters
| Name | Type | Description |
|---|---|---|
idOrInstance | string | Object | The id or instance of something in this Manager |
Returns: Object — An instance from this Manager Source
resolveId
resolveId(idOrInstance: string | Object): Snowflake
Resolves a data entry to an instance id. Parameters
| Name | Type | Description |
|---|---|---|
idOrInstance | string | Object | The id or instance of something in this Manager |
Returns: SnowflakeSource