Added inital job entity and services. Added released works API integration.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace JSMR.Infrastructure.Integrations.DLSite.Models.NewWorks;
|
||||
|
||||
public record NewWorksApiData
|
||||
{
|
||||
[JsonPropertyName("products")]
|
||||
public required NewWorksApiProduct[] Products { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace JSMR.Infrastructure.Integrations.DLSite.Models.NewWorks;
|
||||
|
||||
public record NewWorksApiMeta
|
||||
{
|
||||
[JsonPropertyName("code")]
|
||||
public int Code { get; init; }
|
||||
|
||||
[JsonPropertyName("errorMessage")]
|
||||
public string ErrorMessage { get; init; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("errorType")]
|
||||
public string ErrorType { get; init; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace JSMR.Infrastructure.Integrations.DLSite.Models.NewWorks;
|
||||
|
||||
public record NewWorksApiProduct
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public required string Id { get; init; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string? Name { get; init; }
|
||||
|
||||
[JsonPropertyName("nameMasked")]
|
||||
public string? NameMasked { get; init; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string? Description { get; init; }
|
||||
|
||||
[JsonPropertyName("descriptionMasked")]
|
||||
public string? DescriptionMasked { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace JSMR.Infrastructure.Integrations.DLSite.Models.NewWorks;
|
||||
|
||||
public record NewWorksApiResponse
|
||||
{
|
||||
[JsonPropertyName("meta")]
|
||||
public required NewWorksApiMeta Meta { get; init; }
|
||||
|
||||
[JsonPropertyName("data")]
|
||||
public required NewWorksApiData Data { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user