using RoslynBridge.WebApi.Models;
namespace RoslynBridge.WebApi.Services;
///
/// Service for managing query history
///
public interface IHistoryService
{
///
/// Add a new history entry
///
/// The history entry to add
void Add(QueryHistoryEntry entry);
///
/// Get all history entries
///
/// List of all history entries
IEnumerable GetAll();
///
/// Get a specific history entry by ID
///
/// The entry ID
/// The history entry, or null if not found
QueryHistoryEntry? GetById(string id);
///
/// Get recent history entries
///
/// Number of entries to return
/// List of recent history entries
IEnumerable GetRecent(int count = 50);
///
/// Clear all history entries
///
void Clear();
///
/// Get total count of history entries
///
/// Total number of entries
int GetCount();
}