# ModelManager
Manage API models methods and holds their cache
# Constructor
new ModelManager(client);
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
client | Client | The client managing this | No |
# Properties
# cache
The group of cached model items mapped by their tokens
- Type: Group <ModelToken, Model>
# client
The client managing this
- Type: Client
# Methods
# fetch(query)
Get all data about a model
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
query | ModelToken | The model token | No |
# resolve(query)
Resolves a model data to a model object
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
query | ModelResolvable | The title, name or token of the model | No |
- Return: Model