18 lines
586 B
C#
18 lines
586 B
C#
namespace UtopiaCanteenSystem.Services;
|
|
|
|
/// <summary>
|
|
/// Runs employee RFID and meal/menu offline cache sync jobs (no lunch order production sync).
|
|
/// </summary>
|
|
public interface IOfflineCacheSyncService
|
|
{
|
|
Task<OfflineCacheSyncResult> SyncEmployeeAndMenuCacheAsync(CancellationToken cancellationToken = default);
|
|
}
|
|
|
|
public sealed class OfflineCacheSyncResult
|
|
{
|
|
public bool Success { get; init; }
|
|
public string? ErrorMessage { get; init; }
|
|
public EmployeeRfidTagSyncResult? EmployeeSync { get; init; }
|
|
public MealMenuCacheSyncResult? MealMenuSync { get; init; }
|
|
}
|