ResourceResult - gomeddo/js-sdk GitHub Wiki
Object containing the results of a ResourceRequest including methods to get the individual resources.
Example
const resourceResult = gm.buildResourceRequest()
.includeAllResourcesAt(sfId1, sfId2)
.withType(sfTypeId)
.withAvailableSlotsBetween(startDatetime, endDatetime)
.getResults()
Instance methods
Inherits methods from its parent, DimensionRecordResult.
numberOfresources
Syntax
numberOfresources()
Return value: The number of resources in the result.
Description
Gets the number of resources in the result.
getResourceIds
Syntax
getResourceIds()
Return value: A list of all the resource ids in the result.
Description
Gets a list of all the resource ids in the result.
getResource
Syntax
getResource(idOrName)
Parameters:
idOrName
The id of name of the resource you want to receive
Return value: The Resource matching the id of name.