IAzureCosmosDbGetMessagesOfDevice Method

Retrieves all device messages belonging to a Device.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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