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

            if (penaltyAmount_ != null)
            {
                hash ^= PenaltyAmount.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public void MergeFrom(CancellationPenaltyEstimate other)
 {
     if (other == null)
     {
         return;
     }
     if (other.penaltyAmount_ != null)
     {
         if (penaltyAmount_ == null)
         {
             penaltyAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         PenaltyAmount.MergeFrom(other.PenaltyAmount);
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
 }