using Core.Abstractions.DomainObjects; using Core.Abstractions.Models; using Core.Enumerations; using Extensions; using System.ComponentModel.DataAnnotations; using System.Diagnostics.CodeAnalysis; using WeatherForecast.Models.Requests.L10n; namespace WeatherForecast.Models.Abstractions { /// /// /// /// public abstract class PostItemRequestModelBase : RequestModelBase { /// /// /// public List? L10n { get; set; } /// /// /// public List? MediaAttachments { get; set; } /// /// /// public List? Categories { get; set; } /// /// /// public List? Tags { get; set; } /// /// /// public bool? FamilyFriendly { get; set; } /// /// Base MemberNotNullWhen workaround /// /// /// [MemberNotNullWhen(false, new[] { nameof(L10n) })] private protected bool HasValidationErrorsBase(bool hasErrors) => hasErrors; } }