LogikalElevationDetailResponse.cs 905 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. namespace InABox.Integration.Logikal
  5. {
  6. public class LogikalElevationDetailResponse<TElevation,TFinish,TProfile,TGasket,TComponent,TGlass,TLabour> : LogikalResponse
  7. where TElevation : ILogikalElevationDetail<TFinish,TProfile,TGasket,TComponent,TGlass,TLabour>
  8. where TFinish : ILogikalFinish
  9. where TProfile : ILogikalProfile
  10. where TGasket : ILogikalGasket
  11. where TComponent : ILogikalComponent
  12. where TGlass : ILogikalGlass
  13. where TLabour : ILogikalLabour
  14. {
  15. public override LogikalMethod Method() => LogikalMethod.ElevationDetail;
  16. public IEnumerable<TElevation> Elevations { get; set; } = new TElevation[] { };
  17. public override string ToString()
  18. {
  19. return string.Join("; ",Elevations.Select(x=>x.Description));
  20. }
  21. }
  22. }