
* Moved UpdateRelatedSeries from controller to SeriesService.cs * Added 2 tests. - UpdateRelatedSeries_ShouldDeletePrequelRelation - UpdateRelatedSeries_ShouldNotAllowDuplicates * Some docs and codestyle nitpicks * Simplified tests and made easier to read * Added 'Editions' series relation * Missing code to properly show the relations in the UI * Create Service for GetRelatedServices * Added unit test. Assert Edition, Prequel and Sequel do not return parent while others do * fixed missing userRating * Add requested changes: - Rename one test - Split one test into two tests
26 lines
1,021 B
C#
26 lines
1,021 B
C#
using System.Collections.Generic;
|
|
using API.Entities.Enums;
|
|
|
|
namespace API.DTOs.SeriesDetail;
|
|
|
|
public class RelatedSeriesDto
|
|
{
|
|
/// <summary>
|
|
/// The parent relationship Series
|
|
/// </summary>
|
|
public int SourceSeriesId { get; set; }
|
|
|
|
public IEnumerable<SeriesDto> Sequels { get; set; }
|
|
public IEnumerable<SeriesDto> Prequels { get; set; }
|
|
public IEnumerable<SeriesDto> SpinOffs { get; set; }
|
|
public IEnumerable<SeriesDto> Adaptations { get; set; }
|
|
public IEnumerable<SeriesDto> SideStories { get; set; }
|
|
public IEnumerable<SeriesDto> Characters { get; set; }
|
|
public IEnumerable<SeriesDto> Contains { get; set; }
|
|
public IEnumerable<SeriesDto> Others { get; set; }
|
|
public IEnumerable<SeriesDto> AlternativeSettings { get; set; }
|
|
public IEnumerable<SeriesDto> AlternativeVersions { get; set; }
|
|
public IEnumerable<SeriesDto> Doujinshis { get; set; }
|
|
public IEnumerable<SeriesDto> Parent { get; set; }
|
|
public IEnumerable<SeriesDto> Editions { get; set; }
|
|
}
|