mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Continues core Domain structure modeling
This commit is contained in:
1 parent
c39652066e
commit
50c15cf889
54 files changed
+2318
-159
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.Core.Aggregates.VideoLibrary.Services;
|
||||
using Lumina.Domain.Core.Aggregates.WrittenContentLibrary.Services;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.Core.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for the service for managing a media library.
|
||||
/// </summary>
|
||||
public interface IMediaLibraryService
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the service for managing a audio library.
|
||||
/// </summary>
|
||||
//public IAudioLibraryService AudioLibraryService { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the service for managing a video library.
|
||||
/// </summary>
|
||||
public IVideoLibraryService VideoLibraryService { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the service for managing a written content library.
|
||||
/// </summary>
|
||||
public IWrittenContentLibraryService WrittenContentLibraryService { get; }
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.Core.Aggregates.VideoLibrary.Services;
|
||||
using Lumina.Domain.Core.Aggregates.WrittenContentLibrary.Services;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.Core.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Service for managing media libraries.
|
||||
/// </summary>
|
||||
public class MediaLibraryService : IMediaLibraryService
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the service for managing a video library.
|
||||
/// </summary>
|
||||
public IVideoLibraryService VideoLibraryService { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the service for managing a written content library.
|
||||
/// </summary>
|
||||
public IWrittenContentLibraryService WrittenContentLibraryService { get; private set; }
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MediaLibraryService"/> class.
|
||||
/// </summary>
|
||||
/// <param name="videoLibraryService">Injected video library service.</param>
|
||||
/// <param name="writtenContentLibraryService">Injected written content library service.</param>
|
||||
public MediaLibraryService(IVideoLibraryService videoLibraryService, IWrittenContentLibraryService writtenContentLibraryService)
|
||||
{
|
||||
VideoLibraryService = videoLibraryService;
|
||||
WrittenContentLibraryService = writtenContentLibraryService;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in new issue
Block a user