LogikalElevationDetailResponse.cs 965 B

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