Polish 7 (#3381)
This commit is contained in:
parent
cb810a2d8f
commit
3e3b6ba92b
26 changed files with 1631 additions and 212 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using API.Entities;
|
||||
using API.Entities.Enums;
|
||||
using API.Entities.Metadata;
|
||||
|
@ -21,12 +22,15 @@ public class SeriesMetadataBuilder : IEntityBuilder<SeriesMetadata>
|
|||
};
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
public SeriesMetadataBuilder WithCollectionTag(CollectionTag tag)
|
||||
{
|
||||
_seriesMetadata.CollectionTags ??= new List<CollectionTag>();
|
||||
_seriesMetadata.CollectionTags.Add(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
public SeriesMetadataBuilder WithCollectionTags(IList<CollectionTag> tags)
|
||||
{
|
||||
if (tags == null) return this;
|
||||
|
@ -34,6 +38,7 @@ public class SeriesMetadataBuilder : IEntityBuilder<SeriesMetadata>
|
|||
_seriesMetadata.CollectionTags = tags;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SeriesMetadataBuilder WithPublicationStatus(PublicationStatus status)
|
||||
{
|
||||
_seriesMetadata.PublicationStatus = status;
|
||||
|
@ -58,4 +63,22 @@ public class SeriesMetadataBuilder : IEntityBuilder<SeriesMetadata>
|
|||
|
||||
return this;
|
||||
}
|
||||
|
||||
public SeriesMetadataBuilder WithLanguage(string languageCode)
|
||||
{
|
||||
_seriesMetadata.Language = languageCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SeriesMetadataBuilder WithReleaseYear(int year)
|
||||
{
|
||||
_seriesMetadata.ReleaseYear = year;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SeriesMetadataBuilder WithSummary(string summary)
|
||||
{
|
||||
_seriesMetadata.Summary = summary;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue