public void MergeFrom(ReservationCheckInNotification other) { if (other == null) { return; } if (other.JWToken.Length != 0) { JWToken = other.JWToken; } if (other.reservation_ != null) { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } Reservation.MergeFrom(other.Reservation); } if (other.checkInDate_ != null) { if (checkInDate_ == null) { checkInDate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } CheckInDate.MergeFrom(other.CheckInDate); } if (other.roomId_ != null) { if (roomId_ == null) { roomId_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } RoomId.MergeFrom(other.RoomId); } if (other.guestId_ != null) { if (guestId_ == null) { guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator(); } GuestId.MergeFrom(other.GuestId); } if (other.averageRate_ != null) { if (averageRate_ == null) { averageRate_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } AverageRate.MergeFrom(other.AverageRate); } if (other.ReservationBookingNumber.Length != 0) { ReservationBookingNumber = other.ReservationBookingNumber; } if (other.KeepGuaranteeRequested != false) { KeepGuaranteeRequested = other.KeepGuaranteeRequested; } }
public void MergeFrom(GuestCheckedIn other) { if (other == null) { return; } if (other.checkInDate_ != null) { if (checkInDate_ == null) { checkInDate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } CheckInDate.MergeFrom(other.CheckInDate); } if (other.averageRate_ != null) { if (averageRate_ == null) { averageRate_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } AverageRate.MergeFrom(other.AverageRate); } if (other.ReservationBookingNumber.Length != 0) { ReservationBookingNumber = other.ReservationBookingNumber; } if (other.reservationId_ != null) { if (reservationId_ == null) { reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } ReservationId.MergeFrom(other.ReservationId); } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } if (other.guestId_ != null) { if (guestId_ == null) { guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator(); } GuestId.MergeFrom(other.GuestId); } if (other.RoomType.Length != 0) { RoomType = other.RoomType; } }