using System; using System.Collections.Generic; using System.Runtime.Serialization; namespace GitHub.Build.WebApi { /// /// Represents a Subversion mapping entry. /// [DataContract] public class SvnMappingDetails { /// /// The server path. /// [DataMember(Name = "serverPath")] public String ServerPath { get; set; } /// /// The local path. /// [DataMember(Name = "localPath")] public String LocalPath { get; set; } /// /// The revision. /// [DataMember(Name = "revision")] public String Revision { get; set; } /// /// The depth. /// [DataMember(Name = "depth")] public Int32 Depth { get; set; } /// /// Indicates whether to ignore externals. /// [DataMember(Name = "ignoreExternals")] public bool IgnoreExternals { get; set; } } /// /// Represents a subversion workspace. /// [DataContract] public class SvnWorkspace { /// /// The list of mappings. /// public List Mappings { get { if (m_Mappings == null) { m_Mappings = new List(); } return m_Mappings; } } [DataMember(Name = "mappings")] private List m_Mappings; } }