2020-11-09 18:12:07 +01:00
|
|
|
|
using System;
|
2020-11-22 10:39:51 +01:00
|
|
|
|
using System.Collections.Generic;
|
2020-11-09 18:12:07 +01:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2020-11-09 18:13:02 +01:00
|
|
|
|
namespace Birdmap.API.Services
|
2020-11-09 18:12:07 +01:00
|
|
|
|
{
|
2020-11-22 10:39:51 +01:00
|
|
|
|
public record Message(Guid DeviceId, DateTime Date, double Probability);
|
|
|
|
|
|
2020-11-09 18:12:07 +01:00
|
|
|
|
public interface IDevicesHubClient
|
|
|
|
|
{
|
2020-11-22 10:39:51 +01:00
|
|
|
|
Task NotifyMessagesAsync(IEnumerable<Message> messages);
|
2020-11-11 20:35:26 +01:00
|
|
|
|
Task NotifyDeviceUpdatedAsync(Guid deviceId);
|
|
|
|
|
Task NotifyAllUpdatedAsync();
|
2020-11-09 18:12:07 +01:00
|
|
|
|
}
|
|
|
|
|
}
|