public override int GetHashCode() { int hash = 1; if (reservation_ != null) { hash ^= Reservation.GetHashCode(); } if (ReservationIdFromChannel.Length != 0) { hash ^= ReservationIdFromChannel.GetHashCode(); } if (RushReservationIdFromChannel.Length != 0) { hash ^= RushReservationIdFromChannel.GetHashCode(); } if (SourceIndirectChannel.Length != 0) { hash ^= SourceIndirectChannel.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); }