LogikalBOMResponse.cs 823 B

12345678910111213141516171819202122
  1. namespace InABox.Integration.Logikal
  2. {
  3. public class LogikalBOMResponse<TBOM,TGroup,TStyle,TSupplier,TProfile,TGasket,TComponent,TGlass,TLabour> : LogikalResponse
  4. where TBOM : ILogikalBOM<TGroup,TStyle,TSupplier,TProfile,TGasket,TComponent,TGlass,TLabour>, new()
  5. where TGroup : ILogikalGroup
  6. where TStyle : ILogikalStyle
  7. where TSupplier : ILogikalSupplier
  8. where TProfile : ILogikalProfile
  9. where TGasket : ILogikalGasket
  10. where TComponent : ILogikalComponent
  11. where TGlass : ILogikalGlass
  12. where TLabour : ILogikalLabour
  13. {
  14. public override LogikalMethod Method() => LogikalMethod.BOM;
  15. public TBOM BOM { get; set; } = new TBOM();
  16. public override string ToString() => $"{BOM.SQLiteData?.Length ?? 0} bytes";
  17. }
  18. }