| | 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 relationship that occurs in the lifecycle. |
| | 11 | | /// See https://spdx.github.io/spdx-spec/v3.0.1/model/Core/Classes/LifecycleScopedRelationship/ |
| | 12 | | /// </summary> |
| | 13 | | public class LifecycleScopedRelationship : Relationship |
| | 14 | | { |
| | 15 | | [JsonPropertyName("scope")] |
| | 16 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 5 | 17 | | public LifecycleScopeType? Scope { get; set; } |
| | 18 | |
|
| | 19 | | // protected internal no-parm constructor required for deserialization |
| | 20 | | // ReSharper disable once UnusedMember.Global |
| 2 | 21 | | protected internal LifecycleScopedRelationship() |
| | 22 | | { |
| 2 | 23 | | } |
| | 24 | |
|
| | 25 | | [SetsRequiredMembers] |
| | 26 | | public LifecycleScopedRelationship(Catalog catalog, CreationInfo creationInfo, RelationshipType relationshipType, |
| 2 | 27 | | Element from, List<Element> to) : base(catalog, creationInfo, relationshipType, from, to) |
| | 28 | | { |
| 2 | 29 | | } |
| | 30 | | } |