mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-01 12:44:44 -04:00
20 lines
452 B
C#
20 lines
452 B
C#
using System;
|
|
using API.DTOs.Scrobbling;
|
|
using API.Entities.Enums;
|
|
|
|
namespace API.Helpers;
|
|
#nullable enable
|
|
|
|
public static class LibraryTypeHelper
|
|
{
|
|
public static MediaFormat GetFormat(LibraryType libraryType)
|
|
{
|
|
return libraryType switch
|
|
{
|
|
LibraryType.Manga => MediaFormat.Manga,
|
|
LibraryType.Comic => MediaFormat.Comic,
|
|
LibraryType.LightNovel => MediaFormat.LightNovel,
|
|
};
|
|
}
|
|
}
|