| | 1 | | using System.Diagnostics.CodeAnalysis; |
| | 2 | | using System.Text.Json.Serialization; |
| | 3 | | using Spdx3.Model.Core.Classes; |
| | 4 | | using Spdx3.Serialization; |
| | 5 | | using Spdx3.Utility; |
| | 6 | |
|
| | 7 | | namespace Spdx3.Model.ExpandedLicensing.Classes; |
| | 8 | |
|
| | 9 | | /// <summary> |
| | 10 | | /// A license exception that is listed on the SPDX Exceptions list. |
| | 11 | | /// See https://spdx.github.io/spdx-spec/v3.0.1/model/ExpandedLicensing/Classes/ListedLicenseException/ |
| | 12 | | /// |
| | 13 | | /// Note that despite the name, this is not a C# Exception class. |
| | 14 | | /// </summary> |
| | 15 | | public class ListedLicenseException : LicenseAddition |
| | 16 | | { |
| | 17 | | [JsonPropertyName("expandedlicensing_deprecatedVersion")] |
| | 18 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 2 | 19 | | public string? DeprecatedVersion { get; set; } |
| | 20 | |
|
| | 21 | | [JsonPropertyName("expandedlicensing_listVersionAdded")] |
| | 22 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 2 | 23 | | public string? ListVersionAdded { get; set; } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// No-arg constructor required for serialization/deserialization |
| | 27 | | /// </summary> |
| 0 | 28 | | protected internal ListedLicenseException() |
| | 29 | | { |
| 0 | 30 | | } |
| | 31 | |
|
| | 32 | | [SetsRequiredMembers] |
| 2 | 33 | | public ListedLicenseException(Catalog catalog, CreationInfo creationInfo, string additionText) : base(catalog, |
| 2 | 34 | | creationInfo, additionText) |
| | 35 | | { |
| 2 | 36 | | } |
| | 37 | | } |