1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System.Collections.Generic;
- using System.Linq;
- using InABox.Integration.Awg;
- namespace InABox.Integration.Logikal
- {
- public interface ILogikalPartsResponse<TGroup, TFinish, TProfile, TGasket, TComponent, TGlass, TLabour>
- : IAwgBOM<TGroup, TFinish, TProfile, TGasket, TComponent, TGlass, TLabour>
- where TGroup : ILogikalProductGroup
- where TFinish : ILogikalFinish
- where TProfile : ILogikalProfile
- where TGasket : ILogikalGasket
- where TComponent : ILogikalComponent
- where TGlass : ILogikalGlass
- where TLabour : ILogikalLabour
- {
- byte[] ExcelData { get; set; }
- byte[] SQLiteData { get; set; }
- }
- public abstract class AbstractLogikalPartsResponse<TGroup, TFinish, TProfile, TGasket, TComponent, TGlass, TLabour>
- : LogikalResponse, ILogikalPartsResponse<TGroup, TFinish, TProfile, TGasket, TComponent, TGlass, TLabour>
- where TGroup : ILogikalProductGroup
- where TFinish : ILogikalFinish
- where TProfile : ILogikalProfile
- where TGasket : ILogikalGasket
- where TComponent : ILogikalComponent
- where TGlass : ILogikalGlass
- where TLabour : ILogikalLabour
- {
- public IEnumerable<TGroup> Groups { get; set; }
-
- public IEnumerable<TFinish> Finishes { get; set; }
-
- public IEnumerable<TProfile> Profiles { get; set; }
-
- public IEnumerable<TGasket> Gaskets { get; set; }
- public IEnumerable<TComponent> Components { get; set; }
- public IEnumerable<TGlass> Glass { get; set; }
- public IEnumerable<TLabour> Labour { get; set; }
- public byte[] ExcelData { get; set; }
-
- public byte[] SQLiteData { get; set; }
- public override string ToString() => $"{Finishes?.Count() ?? 0} Finishes / {Profiles?.Count() ?? 0} Profiles / {Gaskets?.Count() ?? 0} Gaskets / {Components?.Count() ?? 0} Components / {Glass?.Count() ?? 0} Glass/ {Labour?.Count() ?? 0} Activities found";
- }
- }
|