Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (priceQuote_ != null)
            {
                hash ^= PriceQuote.GetHashCode();
            }
            if (reservationSummary_ != null)
            {
                hash ^= ReservationSummary.GetHashCode();
            }
            if (HasLastMinuteWaiver != false)
            {
                hash ^= HasLastMinuteWaiver.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (ReservationHadGuaranteeTender != false)
            {
                hash ^= ReservationHadGuaranteeTender.GetHashCode();
            }
            if (reservationSummary_ != null)
            {
                hash ^= ReservationSummary.GetHashCode();
            }
            if (priceQuote_ != null)
            {
                hash ^= PriceQuote.GetHashCode();
            }
            return(hash);
        }
Beispiel #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);
     }
 }