More updates.
This commit is contained in:
6
MangaReader.Core/Metadata/IMangaMetadataCoordinator.cs
Normal file
6
MangaReader.Core/Metadata/IMangaMetadataCoordinator.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace MangaReader.Core.Metadata;
|
||||
|
||||
public interface IMangaMetadataCoordinator
|
||||
{
|
||||
IMangaMetadataProvider GetProvider(string sourceName);
|
||||
}
|
||||
11
MangaReader.Core/Metadata/MangaMetadataCoordinator.cs
Normal file
11
MangaReader.Core/Metadata/MangaMetadataCoordinator.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace MangaReader.Core.Metadata;
|
||||
|
||||
public class MangaMetadataCoordinator(IServiceProvider serviceProvider) : IMangaMetadataCoordinator
|
||||
{
|
||||
public IMangaMetadataProvider GetProvider(string sourceName)
|
||||
{
|
||||
return serviceProvider.GetRequiredKeyedService<IMangaMetadataProvider>(sourceName);
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
namespace MangaReader.Core.Metadata;
|
||||
using MangaReader.Core.Common;
|
||||
|
||||
namespace MangaReader.Core.Metadata;
|
||||
|
||||
public class SourceMangaContributor
|
||||
{
|
||||
public required string Name { get; set; }
|
||||
public SourceMangaContributorRole Role { get; set; }
|
||||
public ContributorRole Role { get; set; }
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace MangaReader.Core.Metadata;
|
||||
|
||||
public enum SourceMangaContributorRole
|
||||
{
|
||||
Unknown,
|
||||
Author,
|
||||
Artist
|
||||
}
|
||||
Reference in New Issue
Block a user