public Activity(string name, DateTime openingHour, DateTime closingHour, DaysOpen daysOpen,
                 int minParticipants, int maxParticipants, Price studentPrice, Price adultPrice,
                 string address, EnergyNeeded energyNeeded, string materialNeeded, Transport transport,
                 Duration duration, Temperature temperature, Category category)
 {
     Name = name;
     OpeningHour = openingHour;
     ClosingHour = closingHour;
     DaysOpen = daysOpen;
     MinimumParticipants = minParticipants;
     MaximumParticipants = maxParticipants;
     StudentPrice = studentPrice;
     AdultPrice = adultPrice;
     Address = address;
     EnergyNeeded = energyNeeded;
     MaterialNeeded = materialNeeded;
     Transport = transport;
     Duration = duration;
     Temperature = temperature;
     Category = category;
 }
예제 #2
0
 public ActivityData(string name, DateTime openingHour, DateTime closingHour, DaysOpen daysOpen,
                     int minParticipants, int maxParticipants, Price studentPrice, Price adultPrice,
                     string address, EnergyNeeded energyNeeded, string materialNeeded, Transport transport,
                     ActivityDuration duration, Temperature temperature, Category category)
 {
     Name                = name;
     OpeningHour         = openingHour;
     ClosingHour         = closingHour;
     DaysOpen            = daysOpen;
     MinimumParticipants = minParticipants;
     MaximumParticipants = maxParticipants;
     StudentPrice        = studentPrice;
     AdultPrice          = adultPrice;
     Address             = address;
     EnergyNeeded        = energyNeeded;
     MaterialNeeded      = materialNeeded;
     Transport           = transport;
     Duration            = duration;
     Temperature         = temperature;
     Category            = category;
 }