using System; using System.Collections.Generic; using System.Linq; namespace InABox.Integration.Logikal { public class LogikalElevationDetailResponse : LogikalResponse where TElevation : ILogikalElevationDetail where TGroup : ILogikalProductGroup where TFinish : ILogikalFinish where TProfile : ILogikalProfile where TGasket : ILogikalGasket where TComponent : ILogikalComponent where TGlass : ILogikalGlass where TLabour : ILogikalLabour { public override LogikalMethod Method() => LogikalMethod.ElevationDetail; public IEnumerable Elevations { get; set; } = new TElevation[] { }; public override string ToString() { return string.Join("; ",Elevations.Select(x=>x.Description)); } } }