* Version bump * Okay this should be the last (#2037) * Fixed improper date visualization for reading list detail page. * Correct not-read badge position (#2034) --------- Co-authored-by: Andre Smith <Hobogrammer@users.noreply.github.com> * Bump versions by dotnet-bump-version. * Merged develop in --------- Co-authored-by: Andre Smith <Hobogrammer@users.noreply.github.com>
18 lines
477 B
C#
18 lines
477 B
C#
using System;
|
|
using API.Entities.Enums;
|
|
|
|
namespace API.Extensions;
|
|
|
|
public static class EncodeFormatExtensions
|
|
{
|
|
public static string GetExtension(this EncodeFormat encodeFormat)
|
|
{
|
|
return encodeFormat switch
|
|
{
|
|
EncodeFormat.PNG => ".png",
|
|
EncodeFormat.WEBP => ".webp",
|
|
EncodeFormat.AVIF => ".avif",
|
|
_ => throw new ArgumentOutOfRangeException(nameof(encodeFormat), encodeFormat, null)
|
|
};
|
|
}
|
|
}
|