Utopia-Canteen-System/Services/ScanResult.cs

19 lines
663 B
C#

using UtopiaCanteenSystem.Models;
namespace UtopiaCanteenSystem.Services;
/// <summary>
/// Result of processing a scan, including an optional cooldown (in seconds) when blocked.
/// When Success is true, EmployeeInfo may contain the HRMS employee data for display, and MealSession
/// indicates which meal window was active according to production hrms.meal_schedule.
/// </summary>
public readonly record struct ScanResult(
bool Success,
string Message,
int CooldownSecondsRemaining,
HrmsEmployeeInfo? EmployeeInfo = null,
MealSession MealSession = MealSession.None,
string? EmployeeSiteId = null,
string? CurrentSiteId = null);