A constructor that creates a SharedResource object from a plain client object received from the broker.
A plain object received from the broker with information about a SharedResource.
The unique name of the broker that the entity came from.
The date when the entity was created at the broker.
The unstructured data that
The entity Id
The name of the Resource.
The date when the entity was created or last updated locally.
The date when the entity was updated at the broker.
_id "getter" and "setter" for backwards compatibility with the default broker API.
_id "getter" and "setter" for backwards compatibility with the default broker API.
Protected "getter" and "setter" for the raw data received from the broker.
Protected "getter" and "setter" for the raw data received from the broker.
A method that compares the current object with another object to determine if their values are equivalent.
The object to compare to.
It updates the current object with information from a plain object received from the broker.
A plain object received from the broker with information about a SharedResource.
Generated using TypeDoc
A class representing a Resource on the broker but with some extended information about the users with which the Resource is shared. Depending on who called the SharedResource constructor the additional fields may be populated or not. It all depends on whether the broker was instructed to populate those fields or not.
Pay more atthention to where I'm using Resource vs. SharedResource. I may have to "downgrade" some SharedResources to Resources when I'm sure that SharedResource.user and SharedResource.sharedWith were not populated.