Exemplo n.º 1
0
 public Reservation(int id, State state, Source source, int room, string name, Period period, int guests, Sums sums, string notes)
 {
     Id           = id;
     State        = state;
     Source       = source;
     Room         = room;
     GuestName    = name;
     Period       = period;
     GuestsInRoom = guests;
     Sums         = sums;
     Notes        = notes;
 }
Exemplo n.º 2
0
        public Reservation(ReservationInfo resInfo)
        {
            Period period = new Period(resInfo.StartDate, resInfo.EndDate);
            Sums   sums   = new Sums(resInfo.TotalSum, resInfo.PaidSum);

            Id           = resInfo.Id;
            State        = (State)resInfo.StateInt;
            Source       = (Source)resInfo.SourceInt;
            Room         = resInfo.Room;
            GuestName    = resInfo.GuestName;
            Period       = period;
            GuestsInRoom = resInfo.NumberOfGuests;
            Sums         = sums;
            Notes        = resInfo.Notes;
        }