aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Operation/InsufficientLiquidQuantityException.cs
blob: a1c18370b65417fc47679c96f10f593127be48e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 int Current { get; set; }
            public int Required { get; set; }

            public bool IsValid
            {
                get { return Current >= Required; }
            }
        }

        public InsufficientLiquidQuantityException(String message) : base(message)
        {
            IdsPackLevels = new List<IDSPackLevel>();
        }

        public List<IDSPackLevel> IdsPackLevels { get; internal set; }
    }
}