20 lines
624 B
C#
20 lines
624 B
C#
namespace UtopiaCanteenSystem.Services;
|
|
|
|
/// <summary>
|
|
/// Syncs meal schedules and lunch menu tables from production HRMS into local SQLite.
|
|
/// </summary>
|
|
public interface IMealMenuCacheSyncService
|
|
{
|
|
Task<MealMenuCacheSyncResult> SyncAllAsync(CancellationToken cancellationToken = default);
|
|
}
|
|
|
|
public sealed class MealMenuCacheSyncResult
|
|
{
|
|
public bool Success { get; init; }
|
|
public int MealScheduleCount { get; init; }
|
|
public int LunchMenuWeekCount { get; init; }
|
|
public int LunchMenuItemCount { get; init; }
|
|
public int MenuItemCount { get; init; }
|
|
public string? ErrorMessage { get; init; }
|
|
}
|