/// <summary>
 /// Initializes a new instance of the CreateBookingModel class.
 /// </summary>
 /// <param name="booker">The person creating the booking</param>
 /// <param name="reservations">List of reservations to create</param>
 /// <param name="bookerComment">Additional information and comments by
 /// the booker</param>
 /// <param name="comment">Additional information and comments</param>
 /// <param name="paymentAccount">Payment information</param>
 public CreateBookingModel(BookerModel booker, IList <CreateReservationModel> reservations, string bookerComment = default(string), string comment = default(string), CreatePaymentAccountModel paymentAccount = default(CreatePaymentAccountModel))
 {
     Booker         = booker;
     BookerComment  = bookerComment;
     Comment        = comment;
     PaymentAccount = paymentAccount;
     Reservations   = reservations;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the CreateGroupModel class.
 /// </summary>
 /// <param name="booker">The person requesting the group
 /// booking</param>
 /// <param name="name">Name of the group</param>
 /// <param name="propertyIds">List of property ids the group booking
 /// belongs to</param>
 /// <param name="bookerComment">Additional information and comment by
 /// the booker</param>
 /// <param name="comment">Additional information and comments</param>
 /// <param name="paymentAccount">Payment information</param>
 public CreateGroupModel(BookerModel booker, string name, IList <string> propertyIds, string bookerComment = default(string), string comment = default(string), CreatePaymentAccountModel paymentAccount = default(CreatePaymentAccountModel))
 {
     Booker         = booker;
     BookerComment  = bookerComment;
     Comment        = comment;
     Name           = name;
     PaymentAccount = paymentAccount;
     PropertyIds    = propertyIds;
     CustomInit();
 }