using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.BL.Entities; namespace Tango.Integration.Operation { public class InsufficientLiquidQuantityException : Exception { public class IDSPackLevel { public IdsPack IdsPack { get; set; } public long Current { get; set; } public long Required { get; set; } public long Maximum { get; set; } public bool IsValid { get { return Current >= Required; } } public bool IsOverMax { get { return Required > Maximum; } } public String Message { get; set; } public IDSPackLevel() { Maximum = 130000000; Required = 0; Current = 0; } } public InsufficientLiquidQuantityException(String message) : base(message) { IdsPackLevels = new List(); } public List IdsPackLevels { get; internal set; } } }