using System; using System.Collections.Generic; using System.Runtime.Serialization; namespace GitHub.Build.WebApi { /// /// Represents an entry in a workspace mapping. /// [DataContract] public class MappingDetails { /// /// The server path. /// [DataMember(Name = "serverPath")] public String ServerPath { get; set; } /// /// The mapping type. /// [DataMember(Name = "mappingType")] public String MappingType { get; set; } /// /// The local path. /// [DataMember(Name = "localPath")] public String LocalPath { get; set; } } /// /// Represents a workspace mapping. /// [DataContract] public class BuildWorkspace { /// /// The list of workspace mapping entries. /// public List Mappings { get { if (m_mappings == null) { m_mappings = new List(); } return m_mappings; } } [DataMember(Name = "mappings")] private List m_mappings; } }