using System; using System.Runtime.Serialization; using GitHub.Services.WebApi; using Newtonsoft.Json; namespace GitHub.Build.WebApi { /// /// Represents a build process. /// [DataContract] [KnownType(typeof(DesignerProcess))] [KnownType(typeof(YamlProcess))] [KnownType(typeof(DockerProcess))] [KnownType(typeof(JustInTimeProcess))] [JsonConverter(typeof(BuildProcessJsonConverter))] public class BuildProcess : BaseSecuredObject { protected BuildProcess( Int32 type) { } protected internal BuildProcess( Int32 type, ISecuredObject securedObject) : base(securedObject) { this.Type = type; } /// /// The type of the process. /// /// /// See for a list of valid process types. /// [DataMember(Name = "Type")] public Int32 Type { get; internal set; } } }