27 lines
575 B
C#
27 lines
575 B
C#
using System;
|
|
|
|
|
|
namespace JinYuan.Models
|
|
{
|
|
public class BoxSize
|
|
{
|
|
public int layers { get; set; }
|
|
public int rowsPerLayer { get; set; }
|
|
public int colsPerLayer { get; set; }
|
|
|
|
public BoxSize() { }
|
|
|
|
public BoxSize(int layers, int rowsPerLayer, int colsPerLayer)
|
|
{
|
|
this.layers = layers;
|
|
this.rowsPerLayer = rowsPerLayer;
|
|
this.colsPerLayer = colsPerLayer;
|
|
}
|
|
|
|
public int getBoxSize()
|
|
{
|
|
return layers * rowsPerLayer * colsPerLayer;
|
|
}
|
|
}
|
|
}
|