| | 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 that is listed on the SPDX License List. |
| | 11 | | /// See https://spdx.github.io/spdx-spec/v3.0.1/model/ExpandedLicensing/Classes/ListedLicense/ |
| | 12 | | /// |
| | 13 | | /// The SPDX License List can be found here: https://spdx.org/licenses/ |
| | 14 | | /// </summary> |
| | 15 | | public class ListedLicense : License |
| | 16 | | { |
| | 17 | | [JsonPropertyName("expandedlicensing_deprecatedVersion")] |
| | 18 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 35 | 19 | | public string? DeprecatedVersion { get; set; } |
| | 20 | |
|
| | 21 | | [JsonPropertyName("expandedlicensing_listVersionAdded")] |
| | 22 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 3 | 23 | | public string? ListVersionAdded { get; set; } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// No-arg constructor required for serialization/deserialization |
| | 27 | | /// </summary> |
| 694 | 28 | | protected internal ListedLicense() |
| | 29 | | { |
| 694 | 30 | | } |
| | 31 | |
|
| | 32 | | [SetsRequiredMembers] |
| 6 | 33 | | public ListedLicense(Catalog catalog, CreationInfo creationInfo, string licenseText) : base(catalog, creationInfo, |
| 6 | 34 | | licenseText) |
| | 35 | | { |
| 6 | 36 | | } |
| | 37 | | } |