IAzureCosmosDbGetDevicesOfMapMarker Method

Retrieves all devices associated with mapMarker.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<List<DeviceDto>> GetDevicesOfMapMarker(
	MapMarkerDto mapMarker,
	UserSessionData currentUser,
	bool isGlobal,
	CancellationToken cancellationToken
)

Parameters

mapMarker  MapMarkerDto
Map marker to filter on
currentUser  UserSessionData
Current user
isGlobal  Boolean
True if item is global
cancellationToken  CancellationToken
Cancellation token

Return Value

TaskListDeviceDto
Found devices, or an empty list if none were found.

Remarks

Note: this method doesn't check if the user has the permission to view the devices. This has to be filtered out by the caller.

Exceptions

UnauthorizedAccessException If this method was called while currentUser did not have the permission ViewMapMarkers

See Also