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

            if (checkInDate_ != null)
            {
                hash ^= CheckInDate.GetHashCode();
            }
            if (averageRate_ != null)
            {
                hash ^= AverageRate.GetHashCode();
            }
            if (ReservationBookingNumber.Length != 0)
            {
                hash ^= ReservationBookingNumber.GetHashCode();
            }
            if (reservationId_ != null)
            {
                hash ^= ReservationId.GetHashCode();
            }
            if (RoomNumber.Length != 0)
            {
                hash ^= RoomNumber.GetHashCode();
            }
            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            if (RoomType.Length != 0)
            {
                hash ^= RoomType.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (groupBookingId_ != null)
            {
                hash ^= GroupBookingId.GetHashCode();
            }
            if (paymentId_ != null)
            {
                hash ^= PaymentId.GetHashCode();
            }
            if (reservationId_ != null)
            {
                hash ^= ReservationId.GetHashCode();
            }
            if (amount_ != null)
            {
                hash ^= Amount.GetHashCode();
            }
            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            return(hash);
        }
Exemple #3
0
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(ReservationId.GetHashCode() * 23 ^
                       ConnectorId.GetHashCode() * 19 ^
                       ExpiryDate.GetHashCode() * 17 ^
                       IdTag.GetHashCode() * 11 ^

                       (ParentIdTag.HasValue
                            ? ParentIdTag.GetHashCode()
                            : 0));
            }
        }
Exemple #4
0
        public override int GetHashCode()
        {
            //return 80;
            int hashCode = 13;

            // if object is transient, use base GetHashCode()
            if (Object.Equals(ReservationId, default(int)))
            {
                return(base.GetHashCode());
            }

            hashCode = (hashCode * 7) + ReservationId.GetHashCode();
            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (reservationId_ != null)
            {
                hash ^= ReservationId.GetHashCode();
            }
            if (MasterFolioStatus != 0)
            {
                hash ^= MasterFolioStatus.GetHashCode();
            }
            if (masterFolio_ != null)
            {
                hash ^= MasterFolio.GetHashCode();
            }
            hash ^= clientFolios_.GetHashCode();
            if (GuaranteeStatus != 0)
            {
                hash ^= GuaranteeStatus.GetHashCode();
            }
            if (guaranteeDueOn_ != null)
            {
                hash ^= GuaranteeDueOn.GetHashCode();
            }
            if (hostProperty_ != null)
            {
                hash ^= HostProperty.GetHashCode();
            }
            if (MasterFolioState != 0)
            {
                hash ^= MasterFolioState.GetHashCode();
            }
            hash ^= clientFolioReservations_.GetHashCode();
            if (masterDateRange_ != null)
            {
                hash ^= MasterDateRange.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (PenaltyApplied != false)
            {
                hash ^= PenaltyApplied.GetHashCode();
            }
            if (DaysBeforeReservationStart != 0)
            {
                hash ^= DaysBeforeReservationStart.GetHashCode();
            }
            if (reservationId_ != null)
            {
                hash ^= ReservationId.GetHashCode();
            }
            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (invoiceId_ != null)
            {
                hash ^= InvoiceId.GetHashCode();
            }
            if (reservationId_ != null)
            {
                hash ^= ReservationId.GetHashCode();
            }
            if (amount_ != null)
            {
                hash ^= Amount.GetHashCode();
            }
            if (payment_ != null)
            {
                hash ^= Payment.GetHashCode();
            }
            if (taxes_ != null)
            {
                hash ^= Taxes.GetHashCode();
            }
            if (fees_ != null)
            {
                hash ^= Fees.GetHashCode();
            }
            if (charges_ != null)
            {
                hash ^= Charges.GetHashCode();
            }
            if (Voided != false)
            {
                hash ^= Voided.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     return(reservationID.GetHashCode());
 }