Added inital job entity and services. Added released works API integration.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace JSMR.Application.Integrations.DLSite.Models.ReleasedWorks;
|
||||
|
||||
public record ReleasedWork
|
||||
{
|
||||
public required string ProductId { get; init; }
|
||||
public required string Title { get; init; }
|
||||
public required string MaskedTitle { get; init; }
|
||||
public required string Description { get; init; }
|
||||
public required string MaskedDescription { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using JSMR.Application.Enums;
|
||||
|
||||
namespace JSMR.Application.Integrations.DLSite.Models.ReleasedWorks;
|
||||
|
||||
public record ReleasedWorksRequest(
|
||||
Locale Locale,
|
||||
DateOnly Date,
|
||||
int Period
|
||||
);
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace JSMR.Application.Integrations.DLSite.Models.ReleasedWorks;
|
||||
|
||||
public class ReleasedWorksCollection : Dictionary<string, ReleasedWork>
|
||||
{
|
||||
|
||||
}
|
||||
10
JSMR.Application/Integrations/DLSite/Ports/IDLSiteClient.cs
Normal file
10
JSMR.Application/Integrations/DLSite/Ports/IDLSiteClient.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using JSMR.Application.Integrations.DLSite.Models;
|
||||
using JSMR.Application.Integrations.DLSite.Models.ReleasedWorks;
|
||||
|
||||
namespace JSMR.Application.Integrations.DLSite.Ports;
|
||||
|
||||
public interface IDLSiteClient
|
||||
{
|
||||
Task<VoiceWorkDetailCollection> GetVoiceWorkDetailsAsync(string[] productIds, CancellationToken cancellationToken = default);
|
||||
Task<ReleasedWorksCollection> GetReleasedWorksAsync(ReleasedWorksRequest request, CancellationToken cancellationToken);
|
||||
}
|
||||
Reference in New Issue
Block a user