mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Refactors the add book slice and shared media contributor model across the stack
This commit is contained in:
1 parent
3a2c80b615
commit
9a71a6d32b
61 files changed
+5223
-1384
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
@@ -8,9 +9,9 @@ namespace Lumina.Contracts.DTO.MediaContributors;
|
||||
/// Data transfer object for a media contributor.
|
||||
/// </summary>
|
||||
/// <param name="Name">The name details of the media contributor, including display and legal names.</param>
|
||||
/// <param name="Role">The role details of the media contributor, including the role name and category.</param>
|
||||
/// <param name="Role">The canonical role of the media contributor in the media item, used as the key of its localized display string.</param>
|
||||
[DebuggerDisplay("Name: {Name}, Role: {Role}")]
|
||||
public record MediaContributorDto(
|
||||
MediaContributorNameDto? Name,
|
||||
MediaContributorRoleDto? Role
|
||||
MediaContributorRole? Role
|
||||
);
|
||||
@@ -0,0 +1,18 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaContributors;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the reference to a media contributor in a media item, carrying the role the contributor played.
|
||||
/// </summary>
|
||||
/// <param name="ContributorId">The unique identifier of the media contributor.</param>
|
||||
/// <param name="Role">The role the contributor played.</param>
|
||||
[DebuggerDisplay("{ContributorId} - {Role}")]
|
||||
public record MediaContributorReferenceDto(
|
||||
Guid ContributorId,
|
||||
MediaContributorRole Role
|
||||
);
|
||||
@@ -1,17 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaContributors;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the role of a media contributor in a media item.
|
||||
/// </summary>
|
||||
/// <param name="Name">The display name of the role assigned to the media contributor.</param>
|
||||
/// <param name="Category">The canonical category of the role.</param>
|
||||
[DebuggerDisplay("Name: {Name}, Category: {Category}")]
|
||||
public record MediaContributorRoleDto(
|
||||
string? Name,
|
||||
MediaContributorRoleCategory? Category
|
||||
);
|
||||
Reference in new issue
Block a user