예제 #1
0
        public void AddScooter(DateTime registerDate, ScooterState state, Station station)
        {
            Scooter scooter = new Scooter(registerDate, state);

            Scooters.Add(scooter);
            if (scooter.IsStateAvailable(state))
            {
                station.AddScooter(scooter);
                scooter.SetStation(station);
            }
        }
예제 #2
0
 public void assignScooter(Scooter sc)
 {
     Scooters.Add(sc);
 }
예제 #3
0
 public void AddScooter(Scooter scooter)
 {
     Scooters.Add(scooter);
 }