Added settings handling in the backend and settings string display in the front-end

This commit is contained in:
2025-12-18 20:19:13 +01:00
parent bb8543dab2
commit affdeb00b3
6 changed files with 70 additions and 4 deletions

View File

@@ -16,4 +16,10 @@ public struct DateTimedSearchResult(DateTime dateTime, List<ResultItem> results)
public List<DateTime> AccessDateTimes { get; set; } = [dateTime];
[JsonPropertyName("Results")]
public List<ResultItem> Results { get; set; } = results;
}
}
public struct SearchdomainSettings(bool cacheReconciliation = false)
{
[JsonPropertyName("CacheReconciliation")]
public bool CacheReconciliation { get; set; } = cacheReconciliation;
}

View File

@@ -54,3 +54,15 @@ public class SearchdomainSearchesResults
[JsonPropertyName("Searches")]
public required Dictionary<string, DateTimedSearchResult> Searches { get; set; }
}
public class SearchdomainSettingsResults
{
[JsonPropertyName("Success")]
public required bool Success { get; set; }
[JsonPropertyName("Message")]
public string? Message { get; set; }
[JsonPropertyName("Settings")]
public required SearchdomainSettings? Settings { get; set; }
}