Moved relevant application layer enums and value objects to the domain layer.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using JSMR.Application.Common;
|
||||
using JSMR.Domain.Enums;
|
||||
|
||||
namespace JSMR.Application.Scanning.Contracts;
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using JSMR.Application.Common;
|
||||
using JSMR.Application.Integrations.DLSite.Models;
|
||||
using JSMR.Application.Integrations.DLSite.Models;
|
||||
using JSMR.Domain.Enums;
|
||||
using JSMR.Domain.ValueObjects;
|
||||
|
||||
namespace JSMR.Application.Scanning.Contracts;
|
||||
|
||||
@@ -20,10 +21,13 @@ public sealed record VoiceWorkIngest
|
||||
public int? Votes { get; init; }
|
||||
public AgeRating AgeRating { get; init; }
|
||||
public bool HasImage { get; init; }
|
||||
public ICollection<ISupportedLanguage> SupportedLanguages { get; init; } = [];
|
||||
public ICollection<SupportedLanguage> SupportedLanguages { get; init; } = [];
|
||||
public DateOnly? ExpectedDate { get; init; }
|
||||
public DateOnly? SalesDate { get; init; }
|
||||
public DateTime? RegistrationDate { get; init; }
|
||||
public AIGeneration AI { get; init; }
|
||||
public VoiceWorkSeries? Series { get; init; }
|
||||
public VoiceWorkTranslation? Translation { get; init; }
|
||||
|
||||
public static VoiceWorkIngest From(DLSiteWork work, VoiceWorkDetails? details)
|
||||
{
|
||||
@@ -47,7 +51,10 @@ public sealed record VoiceWorkIngest
|
||||
SupportedLanguages = details?.SupportedLanguages ?? [],
|
||||
ExpectedDate = work.ExpectedDate,
|
||||
SalesDate = work.SalesDate,
|
||||
RegistrationDate = details?.RegistrationDate
|
||||
RegistrationDate = details?.RegistrationDate,
|
||||
AI = details?.AI ?? AIGeneration.None,
|
||||
Series = details?.Series,
|
||||
Translation = details?.Translation
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user