using System.Runtime.Serialization; using GitHub.Actions.Pipelines.WebApi.Contracts; using Newtonsoft.Json; namespace GitHub.Actions.Pipelines.WebApi { [DataContract] [KnownType(typeof(ActionsStorageArtifact))] [JsonConverter(typeof(ArtifactJsonConverter))] public class Artifact { public Artifact(ArtifactType type) { Type = type; } /// /// The type of the artifact. /// [DataMember] public ArtifactType Type { get; } /// /// The name of the artifact. /// [DataMember] public string Name { get; set; } /// /// Self-referential url /// [DataMember] public string Url { get; set; } } }