using System; using System.Collections.Generic; namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { /// /// Represents everything that is specific to an edited or published content version /// public class ContentData { [Obsolete("Use ctor with all params, as the pros should be immutable")] public ContentData() { } public ContentData(string name, string urlSegment, int versionId, DateTime versionDate, int writerId, int? templateId, bool published, IDictionary properties, IReadOnlyDictionary cultureInfos) { Name = name ?? throw new ArgumentNullException(nameof(name)); UrlSegment = urlSegment; VersionId = versionId; VersionDate = versionDate; WriterId = writerId; TemplateId = templateId; Published = published; Properties = properties ?? throw new ArgumentNullException(nameof(properties)); CultureInfos = cultureInfos; } public string Name { get; [Obsolete("Do not change this, use ctor with params and have this object immutable.")] set; } public string UrlSegment { get; [Obsolete("Do not change this, use ctor with params and have this object immutable.")] set; } public int VersionId { get; [Obsolete("Do not change this, use ctor with params and have this object immutable.")] set; } public DateTime VersionDate { get; [Obsolete("Do not change this, use ctor with params and have this object immutable.")] set; } public int WriterId { get; [Obsolete("Do not change this, use ctor with params and have this object immutable.")] set; } public int? TemplateId { get; [Obsolete("Do not change this, use ctor with params and have this object immutable.")] set; } public bool Published { get; [Obsolete("Do not change this, use ctor with params and have this object immutable.")] set; } public IDictionary Properties { get; [Obsolete("Do not change this, use ctor with params and have this object immutable.")] set; } /// /// The collection of language Id to name for the content item /// public IReadOnlyDictionary CultureInfos { get; [Obsolete("Do not change this, use ctor with params and have this object immutable.")] set; } } }