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

            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (sourceChannelInfo_ != null)
            {
                hash ^= SourceChannelInfo.GetHashCode();
            }
            if (guest_ != null)
            {
                hash ^= Guest.GetHashCode();
            }
            if (NumberAdults != 0)
            {
                hash ^= NumberAdults.GetHashCode();
            }
            if (NumberChildren != 0)
            {
                hash ^= NumberChildren.GetHashCode();
            }
            hash ^= reservationTags_.GetHashCode();
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (BookingId.Length != 0)
            {
                hash ^= BookingId.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            if (NumberAdults != 0)
            {
                hash ^= NumberAdults.GetHashCode();
            }
            if (NumberChildren != 0)
            {
                hash ^= NumberChildren.GetHashCode();
            }
            if (priceEstimate_ != null)
            {
                hash ^= PriceEstimate.GetHashCode();
            }
            hash ^= tags_.GetHashCode();
            return(hash);
        }
Example #3
0
        public override int GetHashCode()
        {
            var hashCode = 319552321;

            hashCode = hashCode * -1521134295 + EqualityComparer <Flight> .Default.GetHashCode(Outbound);

            hashCode = hashCode * -1521134295 + EqualityComparer <Flight> .Default.GetHashCode(Inbound);

            hashCode = hashCode * -1521134295 + NumberAdults.GetHashCode();
            hashCode = hashCode * -1521134295 + NumberChildren.GetHashCode();
            hashCode = hashCode * -1521134295 + Price.GetHashCode();
            hashCode = hashCode * -1521134295 + TravelClass.GetHashCode();
            hashCode = hashCode * -1521134295 + IsReturn.GetHashCode();
            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (BookingId.Length != 0)
            {
                hash ^= BookingId.GetHashCode();
            }
            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            if (guest_ != null)
            {
                hash ^= Guest.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (NumberAdults != 0)
            {
                hash ^= NumberAdults.GetHashCode();
            }
            if (NumberChildren != 0)
            {
                hash ^= NumberChildren.GetHashCode();
            }
            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            hash ^= additionalGuests_.GetHashCode();
            if (TaxExempt != false)
            {
                hash ^= TaxExempt.GetHashCode();
            }
            if (cancellationPenaltyApplied_ != null)
            {
                hash ^= CancellationPenaltyApplied.GetHashCode();
            }
            if (CancellationReason.Length != 0)
            {
                hash ^= CancellationReason.GetHashCode();
            }
            if (cancellationPolicy_ != null)
            {
                hash ^= CancellationPolicy.GetHashCode();
            }
            if (RequestingParty.Length != 0)
            {
                hash ^= RequestingParty.GetHashCode();
            }
            if (cancellationDate_ != null)
            {
                hash ^= CancellationDate.GetHashCode();
            }
            if (CancellationNumber != 0L)
            {
                hash ^= CancellationNumber.GetHashCode();
            }
            hash ^= activeTags_.GetHashCode();
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (BookingId.Length != 0)
            {
                hash ^= BookingId.GetHashCode();
            }
            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            if (guest_ != null)
            {
                hash ^= Guest.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (NumberAdults != 0)
            {
                hash ^= NumberAdults.GetHashCode();
            }
            if (NumberChildren != 0)
            {
                hash ^= NumberChildren.GetHashCode();
            }
            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            hash ^= additionalGuests_.GetHashCode();
            if (TaxExempt != false)
            {
                hash ^= TaxExempt.GetHashCode();
            }
            if (GuaranteeStatus != 0)
            {
                hash ^= GuaranteeStatus.GetHashCode();
            }
            if (unpaidGuaranteeBalance_ != null)
            {
                hash ^= UnpaidGuaranteeBalance.GetHashCode();
            }
            if (hkTimePreference_ != null)
            {
                hash ^= HkTimePreference.GetHashCode();
            }
            if (VehiclePlateInformation.Length != 0)
            {
                hash ^= VehiclePlateInformation.GetHashCode();
            }
            if (CurrentOccupiedRoomNumber.Length != 0)
            {
                hash ^= CurrentOccupiedRoomNumber.GetHashCode();
            }
            if (currentOccupiedRoom_ != null)
            {
                hash ^= CurrentOccupiedRoom.GetHashCode();
            }
            if (TerminalOccupiedRoomNumber.Length != 0)
            {
                hash ^= TerminalOccupiedRoomNumber.GetHashCode();
            }
            if (terminalOccupiedRoom_ != null)
            {
                hash ^= TerminalOccupiedRoom.GetHashCode();
            }
            hash ^= activeTags_.GetHashCode();
            if (ChannelManagerId.Length != 0)
            {
                hash ^= ChannelManagerId.GetHashCode();
            }
            if (SourceChannelId.Length != 0)
            {
                hash ^= SourceChannelId.GetHashCode();
            }
            if (cancellationPolicy_ != null)
            {
                hash ^= CancellationPolicy.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (BookingId.Length != 0)
            {
                hash ^= BookingId.GetHashCode();
            }
            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            if (guest_ != null)
            {
                hash ^= Guest.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            if (GuaranteeStatus != 0)
            {
                hash ^= GuaranteeStatus.GetHashCode();
            }
            if (tenancy_ != null)
            {
                hash ^= Tenancy.GetHashCode();
            }
            if (property_ != null)
            {
                hash ^= Property.GetHashCode();
            }
            if (Channel != 0)
            {
                hash ^= Channel.GetHashCode();
            }
            if (VehiclePlateInformation.Length != 0)
            {
                hash ^= VehiclePlateInformation.GetHashCode();
            }
            if (CurrentOccupiedRoomNumber.Length != 0)
            {
                hash ^= CurrentOccupiedRoomNumber.GetHashCode();
            }
            if (currentOccupiedRoom_ != null)
            {
                hash ^= CurrentOccupiedRoom.GetHashCode();
            }
            if (TerminalOccupiedRoomNumber.Length != 0)
            {
                hash ^= TerminalOccupiedRoomNumber.GetHashCode();
            }
            if (terminalOccupiedRoom_ != null)
            {
                hash ^= TerminalOccupiedRoom.GetHashCode();
            }
            if (NumberAdults != 0)
            {
                hash ^= NumberAdults.GetHashCode();
            }
            if (NumberChildren != 0)
            {
                hash ^= NumberChildren.GetHashCode();
            }
            hash ^= activeTags_.GetHashCode();
            if (cancellationPolicy_ != null)
            {
                hash ^= CancellationPolicy.GetHashCode();
            }
            if (hkTimePreference_ != null)
            {
                hash ^= HkTimePreference.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (OutstandingIssuedRoomKeys != 0)
            {
                hash ^= OutstandingIssuedRoomKeys.GetHashCode();
            }
            if (OptaRoomStayIndex != 0)
            {
                hash ^= OptaRoomStayIndex.GetHashCode();
            }
            if (ReservationIdFromChannel.Length != 0)
            {
                hash ^= ReservationIdFromChannel.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (BookingId.Length != 0)
            {
                hash ^= BookingId.GetHashCode();
            }
            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            if (guest_ != null)
            {
                hash ^= Guest.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (NumberAdults != 0)
            {
                hash ^= NumberAdults.GetHashCode();
            }
            if (NumberChildren != 0)
            {
                hash ^= NumberChildren.GetHashCode();
            }
            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            hash ^= additionalGuests_.GetHashCode();
            if (TaxExempt != false)
            {
                hash ^= TaxExempt.GetHashCode();
            }
            if (hkTimePreference_ != null)
            {
                hash ^= HkTimePreference.GetHashCode();
            }
            if (VehiclePlateInformation.Length != 0)
            {
                hash ^= VehiclePlateInformation.GetHashCode();
            }
            if (CurrentOccupiedRoomNumber.Length != 0)
            {
                hash ^= CurrentOccupiedRoomNumber.GetHashCode();
            }
            if (currentOccupiedRoom_ != null)
            {
                hash ^= CurrentOccupiedRoom.GetHashCode();
            }
            if (TerminalOccupiedRoomNumber.Length != 0)
            {
                hash ^= TerminalOccupiedRoomNumber.GetHashCode();
            }
            if (terminalOccupiedRoom_ != null)
            {
                hash ^= TerminalOccupiedRoom.GetHashCode();
            }
            if (FirstNightAssignedRoom.Length != 0)
            {
                hash ^= FirstNightAssignedRoom.GetHashCode();
            }
            hash ^= activeTags_.GetHashCode();
            if (ChannelManagerId.Length != 0)
            {
                hash ^= ChannelManagerId.GetHashCode();
            }
            if (SourceChannelId.Length != 0)
            {
                hash ^= SourceChannelId.GetHashCode();
            }
            if (cancellationPolicy_ != null)
            {
                hash ^= CancellationPolicy.GetHashCode();
            }
            if (ReservationIdFromChannel.Length != 0)
            {
                hash ^= ReservationIdFromChannel.GetHashCode();
            }
            if (RushReservationIdFromChannel.Length != 0)
            {
                hash ^= RushReservationIdFromChannel.GetHashCode();
            }
            if (SourceIndirectChannel.Length != 0)
            {
                hash ^= SourceIndirectChannel.GetHashCode();
            }
            if (reservationSource_ != null)
            {
                hash ^= ReservationSource.GetHashCode();
            }
            return(hash);
        }