IAzureCosmosDbGetMessagesOfDevice Method

Retrieves all device messages belonging to a Device.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task<List<DeviceMessageDto>> GetMessagesOfDevice(
	CompanyDto company,
	DeviceDto device,
	int? limit,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
CompanyDto owning the Device
device  DeviceDto
DeviceDto the messages belong to.
limit  NullableInt32
the maximum number of messages to retrieve
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

TaskListDeviceMessageDto
List of messages from the Device

See Also