public override int GetHashCode()
        {
            int hash = 1;

            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (effectiveCheckoutDate_ != null)
            {
                hash ^= EffectiveCheckoutDate.GetHashCode();
            }
            if (DateAcceptibility != 0)
            {
                hash ^= DateAcceptibility.GetHashCode();
            }
            if (folioBalance_ != null)
            {
                hash ^= FolioBalance.GetHashCode();
            }
            if (FolioBalanceAcceptibleForCheckout != false)
            {
                hash ^= FolioBalanceAcceptibleForCheckout.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
 public void MergeFrom(CheckoutCandidateViability 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.DateAcceptibility != 0)
     {
         DateAcceptibility = other.DateAcceptibility;
     }
     if (other.folioBalance_ != null)
     {
         if (folioBalance_ == null)
         {
             folioBalance_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         FolioBalance.MergeFrom(other.FolioBalance);
     }
     if (other.FolioBalanceAcceptibleForCheckout != false)
     {
         FolioBalanceAcceptibleForCheckout = other.FolioBalanceAcceptibleForCheckout;
     }
 }