persistence/Persistence.IntegrationTests/Clients/ISetpointClient.cs

21 lines
612 B
C#
Raw Normal View History

using Persistence.Models;
using Refit;
namespace Persistence.IntegrationTests.Clients
{
public interface ISetpointClient
{
2024-11-18 15:05:12 +05:00
[Post("/current")]
Task<IApiResponse<IEnumerable<SetpointValueDto>>> GetCurrent(IEnumerable<Guid> setpointKeys);
[Post("/history")]
Task<IApiResponse<IEnumerable<SetpointValueDto>>> GetHistory(IEnumerable<Guid> setpointKeys, DateTimeOffset historyMoment);
2024-11-18 15:05:12 +05:00
[Post("/log")]
Task<IApiResponse<Dictionary<Guid, IEnumerable<SetpointLogDto>>>> GetLog(IEnumerable<Guid> setpoitKeys);
2024-11-18 15:05:12 +05:00
[Post("/save")]
Task<IApiResponse<int>> Save(Guid setpointKey, object newValue);
}
}