| | 1 | | using System.Diagnostics.CodeAnalysis; |
| | 2 | | using System.Text.Json.Serialization; |
| | 3 | | using Spdx3.Model.Core.Enums; |
| | 4 | | using Spdx3.Serialization; |
| | 5 | | using Spdx3.Utility; |
| | 6 | |
|
| | 7 | | namespace Spdx3.Model.Core.Classes; |
| | 8 | |
|
| | 9 | | /// <summary> |
| | 10 | | /// A distinct article or unit within the digital domain. |
| | 11 | | /// See https://spdx.github.io/spdx-spec/v3.0.1/model/Core/Classes/Artifact/ |
| | 12 | | /// </summary> |
| | 13 | | public abstract class Artifact : Element |
| | 14 | | { |
| | 15 | | [JsonPropertyName("builtTime")] |
| | 16 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 33 | 17 | | public DateTimeOffset? BuiltTime { get; set; } |
| | 18 | |
|
| | 19 | | [JsonPropertyName("originatedBy")] |
| | 20 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 155 | 21 | | public IList<Agent> OriginatedBy { get; set; } = new List<Agent>(); |
| | 22 | |
|
| | 23 | | [JsonPropertyName("releaseTime")] |
| | 24 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 35 | 25 | | public DateTimeOffset? ReleaseTime { get; set; } |
| | 26 | |
|
| | 27 | | [JsonPropertyName("standardName")] |
| | 28 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 32 | 29 | | public string? StandardName { get; set; } |
| | 30 | |
|
| | 31 | | [JsonPropertyName("suppliedBy")] |
| | 32 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 44 | 33 | | public Agent? SuppliedBy { get; set; } |
| | 34 | |
|
| | 35 | | [JsonPropertyName("supportLevel")] |
| | 36 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 157 | 37 | | public IList<SupportType> SupportLevel { get; set; } = new List<SupportType>(); |
| | 38 | |
|
| | 39 | | [JsonPropertyName("validUntilTime")] |
| | 40 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 35 | 41 | | public DateTimeOffset? ValidUntilTime { get; set; } |
| | 42 | |
|
| | 43 | | // protected internal no-parm constructor required for deserialization |
| 20 | 44 | | protected internal Artifact() |
| | 45 | | { |
| 20 | 46 | | } |
| | 47 | |
|
| | 48 | | [SetsRequiredMembers] |
| 84 | 49 | | protected Artifact(Catalog catalog, CreationInfo creationInfo) : base(catalog, creationInfo) |
| | 50 | | { |
| 84 | 51 | | } |
| | 52 | | } |