public void MergeFrom(ReservationPriceOverrideNotification other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.reservationSummary_ != null)
     {
         if (reservationSummary_ == null)
         {
             reservationSummary_ = new global::HOLMS.Types.Booking.Reservations.ReservationSummary();
         }
         ReservationSummary.MergeFrom(other.ReservationSummary);
     }
     if (other.reservationQuote_ != null)
     {
         if (reservationQuote_ == null)
         {
             reservationQuote_ = new global::HOLMS.Types.Booking.Pricing.PretaxReservationQuote();
         }
         ReservationQuote.MergeFrom(other.ReservationQuote);
     }
 }
コード例 #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    JWToken = input.ReadString();
                    break;
                }

                case 18: {
                    if (reservation_ == null)
                    {
                        reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
                    }
                    input.ReadMessage(reservation_);
                    break;
                }

                case 26: {
                    if (priceQuote_ == null)
                    {
                        priceQuote_ = new global::HOLMS.Types.Booking.Pricing.PretaxReservationQuote();
                    }
                    input.ReadMessage(priceQuote_);
                    break;
                }

                case 34: {
                    if (reservationSummary_ == null)
                    {
                        reservationSummary_ = new global::HOLMS.Types.Booking.Reservations.ReservationSummary();
                    }
                    input.ReadMessage(reservationSummary_);
                    break;
                }

                case 40: {
                    HasLastMinuteWaiver = input.ReadBool();
                    break;
                }
                }
            }
        }
コード例 #3
0
 public void MergeFrom(ReservationBookedNotification 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.priceQuote_ != null)
     {
         if (priceQuote_ == null)
         {
             priceQuote_ = new global::HOLMS.Types.Booking.Pricing.PretaxReservationQuote();
         }
         PriceQuote.MergeFrom(other.PriceQuote);
     }
     if (other.reservationSummary_ != null)
     {
         if (reservationSummary_ == null)
         {
             reservationSummary_ = new global::HOLMS.Types.Booking.Reservations.ReservationSummary();
         }
         ReservationSummary.MergeFrom(other.ReservationSummary);
     }
     if (other.HasLastMinuteWaiver != false)
     {
         HasLastMinuteWaiver = other.HasLastMinuteWaiver;
     }
 }
 public void MergeFrom(ReservationFRPAmendmentNotification 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.ReservationHadGuaranteeTender != false)
     {
         ReservationHadGuaranteeTender = other.ReservationHadGuaranteeTender;
     }
     if (other.reservationSummary_ != null)
     {
         if (reservationSummary_ == null)
         {
             reservationSummary_ = new global::HOLMS.Types.Booking.Reservations.ReservationSummary();
         }
         ReservationSummary.MergeFrom(other.ReservationSummary);
     }
     if (other.priceQuote_ != null)
     {
         if (priceQuote_ == null)
         {
             priceQuote_ = new global::HOLMS.Types.Booking.Pricing.PretaxReservationQuote();
         }
         PriceQuote.MergeFrom(other.PriceQuote);
     }
 }