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

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            if (penalty_ != null)
            {
                hash ^= Penalty.GetHashCode();
            }
            if (DaysBeforeReservationStart != 0)
            {
                hash ^= DaysBeforeReservationStart.GetHashCode();
            }
            if (RequestingParty.Length != 0)
            {
                hash ^= RequestingParty.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (opsdate_ != null)
            {
                hash ^= Opsdate.GetHashCode();
            }
            if (pretaxLodgingCharge_ != null)
            {
                hash ^= PretaxLodgingCharge.GetHashCode();
            }
            if (roomTypeId_ != null)
            {
                hash ^= RoomTypeId.GetHashCode();
            }
            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            if (reservationId_ != null)
            {
                hash ^= ReservationId.GetHashCode();
            }
            return(hash);
        }
        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);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            if (ReservationBookingNumber.Length != 0)
            {
                hash ^= ReservationBookingNumber.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (checkInDate_ != null)
            {
                hash ^= CheckInDate.GetHashCode();
            }
            if (roomId_ != null)
            {
                hash ^= RoomId.GetHashCode();
            }
            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            if (averageRate_ != null)
            {
                hash ^= AverageRate.GetHashCode();
            }
            if (ReservationBookingNumber.Length != 0)
            {
                hash ^= ReservationBookingNumber.GetHashCode();
            }
            if (KeepGuaranteeRequested != false)
            {
                hash ^= KeepGuaranteeRequested.GetHashCode();
            }
            return(hash);
        }
Esempio n. 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            hash ^= cancellations_.GetHashCode();
            if (lastCheckin_ != null)
            {
                hash ^= LastCheckin.GetHashCode();
            }
            if (TotalNightsStayed != 0)
            {
                hash ^= TotalNightsStayed.GetHashCode();
            }
            if (totalInvoiced_ != null)
            {
                hash ^= TotalInvoiced.GetHashCode();
            }
            return(hash);
        }
Esempio n. 7
0
        public override int GetHashCode()
        {
            int hashCode = -521319978;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Accommodation> .Default.GetHashCode(Accommodation);

            hashCode = hashCode * -1521134295 + AccommodationId.GetHashCode();
            hashCode = hashCode * -1521134295 + _checkIn.GetHashCode();
            hashCode = hashCode * -1521134295 + CheckIn.GetHashCode();
            hashCode = hashCode * -1521134295 + _checkOut.GetHashCode();
            hashCode = hashCode * -1521134295 + CheckOut.GetHashCode();
            hashCode = hashCode * -1521134295 + TotalPrice.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <Guest> > .Default.GetHashCode(Guests);

            hashCode = hashCode * -1521134295 + EqualityComparer <Tourist> .Default.GetHashCode(HeadGuest);

            hashCode = hashCode * -1521134295 + GuestId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Review> .Default.GetHashCode(Rating);

            hashCode = hashCode * -1521134295 + EqualityComparer <List <BookingStage> > .Default.GetHashCode(BookingHistory);

            return(hashCode);
        }