Beispiel #1
0
        public InputMessagePack(PackId id,
                                InputMessagePackHandling handling,
                                String?deliveryNumber,
                                String?batchNumber,
                                String?externalId,
                                String?serialNumber,
                                String?scanCode,
                                String?machineLocation,
                                StockLocationId?stockLocationId,
                                PackDate?expiryDate,
                                PackDate?stockInDate,
                                int?index,
                                int?subItemQuantity,
                                int?depth,
                                int?width,
                                int?height,
                                int?weight,
                                PackShape?shape,
                                PackState?state,
                                bool?isInFridge)
        {
            index?.ThrowIfNegative();
            subItemQuantity?.ThrowIfNegative();
            depth?.ThrowIfNegative();
            width?.ThrowIfNegative();
            height?.ThrowIfNegative();
            weight?.ThrowIfNegative();

            this.Id              = id;
            this.Handling        = handling;
            this.DeliveryNumber  = deliveryNumber;
            this.BatchNumber     = batchNumber;
            this.ExternalId      = externalId;
            this.SerialNumber    = serialNumber;
            this.ScanCode        = scanCode;
            this.MachineLocation = machineLocation;
            this.StockLocationId = stockLocationId;
            this.ExpiryDate      = expiryDate;
            this.StockInDate     = stockInDate;
            this.Index           = index;
            this.SubItemQuantity = subItemQuantity;
            this.Depth           = depth;
            this.Width           = width;
            this.Height          = height;
            this.Weight          = weight;
            this.Shape           = shape;
            this.State           = state;
            this.IsInFridge      = isInFridge;
        }
Beispiel #2
0
 public InputMessagePack(PackId id, InputMessagePackHandling handling)
 {
     this.Id       = id;
     this.Handling = handling;
 }