Пример #1
0
    List <int> GetThroughBlockList(int floor, int getDirection, bool onCloud)
    {
        switch (floor)
        {
        case 1:
            return(BlockNumber.GetDownstairThroughBlock(getDirection, onCloud));

        case 2:
            return(BlockNumber.GetUpstairThroughBlock(getDirection, onCloud));

        case 3:
            return(BlockNumber.GetThirdFloorThroughBlock(getDirection, onCloud));
        }

        return(new List <int>());
    }