17 lines
593 B
C#
17 lines
593 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);
|
|
|