using salesbook.Shared.Core.Helpers.Enum;

namespace salesbook.Shared.Core.Helpers;

public static class ActivityCategoryHelper
{
    public static string ConvertToHumanReadable(this ActivityCategoryEnum activityCategory)
    {
        return activityCategory switch
        {
            ActivityCategoryEnum.Memo => "memo",
            ActivityCategoryEnum.Interna => "interna",
            ActivityCategoryEnum.Commessa => "commessa",
            _ => throw new ArgumentOutOfRangeException(nameof(activityCategory), activityCategory, null)
        };
    }
    
    public static List<ActivityCategoryEnum> AllActivityCategory =>
    [
        ActivityCategoryEnum.Memo,
        ActivityCategoryEnum.Interna,
        ActivityCategoryEnum.Commessa
    ];
}