AzureCosmosDbGetGeofencesOfCompany Method

Get geofences of devices or environments belonging to a company.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task<GridResults<GeofenceReferenceDto>> GetGeofencesOfCompany(
	UserSessionData user,
	bool isEnvironments,
	IReadOnlyList<FilterItem> filters,
	IReadOnlyList<SortingItem> sorting,
	ushort pageSize,
	ushort pageNumber,
	CancellationToken cancellationToken
)

Parameters

user  UserSessionData
Currently signed-in user.
isEnvironments  Boolean
If , query EnvironmentDto's. Otherwise, DeviceDto's.
filters  IReadOnlyListFilterItem
Filters to apply
sorting  IReadOnlyListSortingItem
How to sort the items
pageSize  UInt16
Size of the table page
pageNumber  UInt16
Amount of items to skip
cancellationToken  CancellationToken
Cancellation token

Return Value

TaskGridResultsGeofenceReferenceDto
Found geofences, if any.

Implements

IAzureCosmosDbGetGeofencesOfCompany(UserSessionData, Boolean, IReadOnlyListFilterItem, IReadOnlyListSortingItem, UInt16, UInt16, CancellationToken)

See Also