21 lines
612 B
C#
21 lines
612 B
C#
using Persistence.Models;
|
|
using Refit;
|
|
|
|
namespace Persistence.IntegrationTests.Clients
|
|
{
|
|
public interface ISetpointClient
|
|
{
|
|
[Post("/current")]
|
|
Task<IApiResponse<IEnumerable<SetpointValueDto>>> GetCurrent(IEnumerable<Guid> setpointKeys);
|
|
|
|
[Post("/history")]
|
|
Task<IApiResponse<IEnumerable<SetpointValueDto>>> GetHistory(IEnumerable<Guid> setpointKeys, DateTimeOffset historyMoment);
|
|
|
|
[Post("/log")]
|
|
Task<IApiResponse<Dictionary<Guid, IEnumerable<SetpointLogDto>>>> GetLog(IEnumerable<Guid> setpoitKeys);
|
|
|
|
[Post("/save")]
|
|
Task<IApiResponse<int>> Save(Guid setpointKey, object newValue);
|
|
}
|
|
}
|