birbmap/Birdmap.API/Services/Hubs/IDevicesHubClient.cs

16 lines
403 B
C#
Raw Normal View History

2020-11-09 18:12:07 +01:00
using System;
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
{
public record Message(Guid DeviceId, DateTime Date, double Probability);
2020-11-09 18:12:07 +01:00
public interface IDevicesHubClient
{
Task NotifyMessagesAsync(IEnumerable<Message> messages);
Task NotifyDeviceUpdatedAsync(Guid deviceId);
Task NotifyAllUpdatedAsync();
2020-11-09 18:12:07 +01:00
}
}