using adas_core.Domain.Models;

namespace adas_core.Application.Services.Interfaces;

public interface IApiRequestService
{
    /// <summary>
    /// Asynchronously persists the specified <see cref="ApiRequest"/>.
    /// </summary>
    /// <param name="apiRequest">The API request to be saved.</param>
    /// <!-- aidoc:v1 sig=24f178e -->
    Task SaveRequestAsync(ApiRequest apiRequest);
    /// <summary>
    /// Asynchronously saves the specified API request.
    /// </summary>
    /// <param name="apiRequest">The API request to persist.</param>
    /// <!-- aidoc:v1 sig=274a023 -->
    Task SaveRequest(ApiRequest apiRequest);
}