| | | 1 | | using System.Text.Json.Serialization; |
| | | 2 | | using JetBrains.Annotations; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Api.Client.Resources.WorkflowInstances.Models; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// A bookmark represents a location in a workflow where the workflow can be resumed at a later time. |
| | | 8 | | /// </summary> |
| | | 9 | | /// <param name="Id">The ID of the bookmark.</param> |
| | | 10 | | /// <param name="Name">The name of the bookmark.</param> |
| | | 11 | | /// <param name="Hash">The hash of the bookmark.</param> |
| | | 12 | | /// <param name="Payload">The data associated with the bookmark.</param> |
| | | 13 | | /// <param name="ActivityNodeId">The ID of the activity node associated with the bookmark.</param> |
| | | 14 | | /// <param name="ActivityInstanceId">The ID of the activity instance associated with the bookmark.</param> |
| | | 15 | | /// <param name="AutoBurn">Whether the bookmark should be automatically burned.</param> |
| | | 16 | | /// <param name="CallbackMethodName">The name of the method on the activity class to invoke when the bookmark is resumed |
| | | 17 | | /// <param name="Metadata">The metadata associated with this bookmark.</param> |
| | | 18 | | [PublicAPI] |
| | 0 | 19 | | public record Bookmark( |
| | 0 | 20 | | string Id, |
| | 0 | 21 | | string Name, |
| | 0 | 22 | | string Hash, |
| | 0 | 23 | | object? Payload, |
| | 0 | 24 | | string ActivityNodeId, |
| | 0 | 25 | | string ActivityInstanceId, |
| | 0 | 26 | | bool AutoBurn = true, |
| | 0 | 27 | | string? CallbackMethodName = default, |
| | 0 | 28 | | IDictionary<string, string>? Metadata = default |
| | 0 | 29 | | ) |
| | | 30 | | { |
| | | 31 | | /// <inheritdoc /> |
| | | 32 | | [JsonConstructor] |
| | 0 | 33 | | public Bookmark() : this("", "", "", null, "", "") |
| | | 34 | | { |
| | 0 | 35 | | } |
| | | 36 | | } |