Exemplo n.º 1
0
        private static bool HasLayer(IList <IList <LayerCode> > layerCodes, LayerCode layer)
        {
            foreach (IList <LayerCode> layerCollection in layerCodes)
            {
                if (layerCollection.Contains(layer))
                {
                    return(true);
                }
            }

            return(false);
        }
Exemplo n.º 2
0
        private static int CountLayer(IList <IList <LayerCode> > layerCodes, LayerCode layer)
        {
            int i = 0;

            foreach (IList <LayerCode> layerCollection in layerCodes)
            {
                if (layerCollection.Contains(layer))
                {
                    i++;
                }
            }
            return(i);
        }
Exemplo n.º 3
0
 public LayerResponse(int garmentId, LayerCode layer, string imageUri)
 {
     this.GarmentId = garmentId;
     this.Layer     = layer;
     this.ImageUri  = imageUri;
 }