public House(int roomCount) { logger = Logger.Logger.getInstance(); this.roomCount = roomCount; IO.InputOutput io = new IO.InputOutput(logger.AppPath, privateNumber); AppPath = logger.AppPath + @"\" + privateNumber; io.CreateDirectory(); }
public House(int roomCount, int floorNumber, double houseSize, House.Type houseType, DateTime buildDate, bool isActive, bool isDelete, bool isArchive, Adress.Adress adress) { PrivateNumber = Guid.NewGuid().ToString(); logger = Logger.Logger.getInstance(); IO.InputOutput io = new IO.InputOutput(logger.AppPath, privateNumber); AppPath = logger.AppPath + @"\" + privateNumber; io.CreateDirectory(); this.RoomCount = roomCount; this.FloorNumber = floorNumber; this.HouseSize = houseSize; this.HouseType = houseType; this.BuildDate = buildDate; this.IsActive = isActive; this.IsDelete = isDelete; this.IsArchive = isArchive; this.Adress = adress; }