using Jellyfin.Plugin.SRFPlay.Configuration;

namespace Jellyfin.Plugin.SRFPlay.Utilities;

/// <summary>
/// Extension methods for common plugin operations.
/// </summary>
public static class Extensions
{
    /// <summary>
    /// Converts the BusinessUnit enum to its lowercase string representation.
    /// </summary>
    /// <param name="businessUnit">The business unit.</param>
    /// <returns>The lowercase string representation.</returns>
    public static string ToLowerString(this BusinessUnit businessUnit)
    {
        return businessUnit.ToString().ToLowerInvariant();
    }
}
