getAllFromRoomSetup static method
Future<PcoCollection<PcoCalendarResourceSuggestion> >
getAllFromRoomSetup(
- String roomSetupId, {
- String? id,
- PcoCalendarResourceSuggestionQuery? query,
- bool includeResource = false,
Will get a PcoCollection
containing ALL PcoCalendarResourceSuggestion objects (expecting many)
using a path like this: /calendar/v2/room_setups/$roomSetupId/resource_suggestions
Additional options may be specified by using the query
argument, but some
query options are also available as boolean flags in this function call too.
This function forces the query.getAll
to be true.
Implementation
static Future<PcoCollection<PcoCalendarResourceSuggestion>>
getAllFromRoomSetup(
String roomSetupId, {
String? id,
PcoCalendarResourceSuggestionQuery? query,
bool includeResource = false,
}) async {
query ??= PcoCalendarResourceSuggestionQuery();
query.getAll = true;
if (includeResource) query.include.add('resource');
var url = '/calendar/v2/room_setups/$roomSetupId/resource_suggestions';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoCalendarResourceSuggestion>(url,
query: query, apiVersion: kApiVersion);
}