LogikalElevationDetailResponse.cs 1.0 KB

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,TStyle,TSupplier,TProfile,TGasket,TComponent,TGlass,TLabour> : LogikalResponse
  7. where TElevation : ILogikalElevationDetail<TGroup,TStyle,TSupplier,TProfile,TGasket,TComponent,TGlass,TLabour>
  8. where TGroup : ILogikalGroup
  9. where TStyle : ILogikalStyle
  10. where TSupplier : ILogikalSupplier
  11. where TProfile : ILogikalProfile
  12. where TGasket : ILogikalGasket
  13. where TComponent : ILogikalComponent
  14. where TGlass : ILogikalGlass
  15. where TLabour : ILogikalLabour
  16. {
  17. public override LogikalMethod Method() => LogikalMethod.ElevationDetail;
  18. public Dictionary<Guid,Tuple<byte[], byte[]>> Data { get; } = new Dictionary<Guid,Tuple<byte[], byte[]>>();
  19. public TElevation[] Elevations { get; set; } = new TElevation[] { };
  20. public override string ToString() => $"{Elevations?.Count() ?? 0} elevations";
  21. }
  22. }