Fixed the extension method

This commit is contained in:
Thorsten Sommer 2025-02-18 13:12:33 +01:00
parent 4f336960bd
commit a9bf3d5f75
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -9,7 +9,7 @@ public static class RetrievalContentCategoryExtensions
/// </summary>
/// <param name="contentType">The content type yielded by the ERI server.</param>
/// <returns>The corresponding retrieval content category.</returns>
public static RetrievalContentCategory ToRetrievalContentCategory(ContentType contentType) => contentType switch
public static RetrievalContentCategory ToRetrievalContentCategory(this ContentType contentType) => contentType switch
{
ContentType.NONE => RetrievalContentCategory.NONE,
ContentType.UNKNOWN => RetrievalContentCategory.UNKNOWN,