Files
2026-04-07 13:11:39 -05:00

28 lines
862 B
C#

namespace LCU.Library.Internal.MemberPreferencesApiModels.Entities
{
public static class DeliveryPreference
{
public const string Paper = "Paper";
public const string Electronic = "Electronic";
public const string Hold = "Hold";
public const string Microfiche = "Microfiche";
public static string MapMailCodeToPreference(string mailCode)
{
if (string.IsNullOrWhiteSpace(mailCode)) return "";
switch (mailCode)
{
case "3":
return DeliveryPreference.Hold;
case "4":
return DeliveryPreference.Microfiche;
case "5":
return DeliveryPreference.Electronic;
default:
return DeliveryPreference.Paper;
}
}
}
}