示例#1
0
 public void MergeFrom(ReservationAmendmentSummary 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.dateRangePrior_ != null)
     {
         if (dateRangePrior_ == null)
         {
             dateRangePrior_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRangePrior.MergeFrom(other.DateRangePrior);
     }
     if (other.roomTypePrior_ != null)
     {
         if (roomTypePrior_ == null)
         {
             roomTypePrior_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomTypePrior.MergeFrom(other.RoomTypePrior);
     }
     if (other.NumberAdultsPrior != 0)
     {
         NumberAdultsPrior = other.NumberAdultsPrior;
     }
     if (other.NumberChildrenPrior != 0)
     {
         NumberChildrenPrior = other.NumberChildrenPrior;
     }
     if (other.priceEstimatePrior_ != null)
     {
         if (priceEstimatePrior_ == null)
         {
             priceEstimatePrior_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate();
         }
         PriceEstimatePrior.MergeFrom(other.PriceEstimatePrior);
     }
     if (other.dateRangeLatter_ != null)
     {
         if (dateRangeLatter_ == null)
         {
             dateRangeLatter_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRangeLatter.MergeFrom(other.DateRangeLatter);
     }
     if (other.roomTypeLatter_ != null)
     {
         if (roomTypeLatter_ == null)
         {
             roomTypeLatter_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomTypeLatter.MergeFrom(other.RoomTypeLatter);
     }
     if (other.NumberAdultsLatter != 0)
     {
         NumberAdultsLatter = other.NumberAdultsLatter;
     }
     if (other.NumberChildrenLatter != 0)
     {
         NumberChildrenLatter = other.NumberChildrenLatter;
     }
     if (other.priceEstimateLatter_ != null)
     {
         if (priceEstimateLatter_ == null)
         {
             priceEstimateLatter_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate();
         }
         PriceEstimateLatter.MergeFrom(other.PriceEstimateLatter);
     }
     tagsPrior_.Add(other.tagsPrior_);
     tagsLatter_.Add(other.tagsLatter_);
 }