Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (BookingId.Length != 0)
            {
                hash ^= BookingId.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            if (NumberAdults != 0)
            {
                hash ^= NumberAdults.GetHashCode();
            }
            if (NumberChildren != 0)
            {
                hash ^= NumberChildren.GetHashCode();
            }
            if (priceEstimate_ != null)
            {
                hash ^= PriceEstimate.GetHashCode();
            }
            hash ^= tags_.GetHashCode();
            return(hash);
        }
Ejemplo n.º 2
0
 public void MergeFrom(ReservationCreationSummary other)
 {
     if (other == null)
     {
         return;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.BookingId.Length != 0)
     {
         BookingId = other.BookingId;
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.NumberAdults != 0)
     {
         NumberAdults = other.NumberAdults;
     }
     if (other.NumberChildren != 0)
     {
         NumberChildren = other.NumberChildren;
     }
     if (other.priceEstimate_ != null)
     {
         if (priceEstimate_ == null)
         {
             priceEstimate_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate();
         }
         PriceEstimate.MergeFrom(other.PriceEstimate);
     }
     tags_.Add(other.tags_);
 }