LogikalBOMResponse.cs 735 B

1234567891011121314151617181920212223
  1. namespace InABox.Logikal
  2. {
  3. public class LogikalBOMResponse<TProfile, TComponent, TGlass, TLabour> : LogikalResponse
  4. where TProfile : ILogikalProfile
  5. where TComponent : ILogikalComponent
  6. where TGlass : ILogikalGlass
  7. where TLabour : ILogikalLabour
  8. {
  9. public override LogikalMethod Method() => LogikalMethod.BOM;
  10. public TProfile[] Profiles { get; set; }
  11. public TComponent[] Components { get; set; }
  12. public TGlass[] Glass { get; set; }
  13. public TLabour[] Labour { get; set; }
  14. public byte[] ExcelData { get; set; }
  15. public override string ToString() => $"{Profiles?.Length ?? 0} Profiles / {Components?.Length ?? 0} Components found";
  16. }
  17. }