Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (VIN != null ? VIN.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (VehicleMake != null ? VehicleMake.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (VehicleModel != null ? VehicleModel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TyreSize != null ? TyreSize.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (VehicleType != null ? VehicleType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (WFactor != null ? WFactor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (KFactor != null ? KFactor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LFactor != null ? LFactor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OdometerReading != null ? OdometerReading.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Tampered.GetHashCode();
         hashCode = (hashCode * 397) ^ (InvoiceNumber != null ? InvoiceNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (InspectionInfo != null ? InspectionInfo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ TachographHasAdapter.GetHashCode();
         hashCode = (hashCode * 397) ^ (TachographAdapterSerialNumber != null ? TachographAdapterSerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TachographAdapterLocation != null ? TachographAdapterLocation.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TachographCableColor != null ? TachographCableColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MinorWorkDetails != null ? MinorWorkDetails.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TachographType != null ? TachographType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CardSerialNumber != null ? CardSerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CalibrationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ IsDigital.GetHashCode();
         hashCode = (hashCode * 397) ^ NewBattery.GetHashCode();
         hashCode = (hashCode * 397) ^ (NewInspectionInfo != null ? NewInspectionInfo.GetHashCode() : 0);
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (AdditionalData != null)
         {
             hashCode = hashCode * 59 + AdditionalData.GetHashCode();
         }
         if (InvoiceDate != null)
         {
             hashCode = hashCode * 59 + InvoiceDate.GetHashCode();
         }
         if (InvoiceNumber != null)
         {
             hashCode = hashCode * 59 + InvoiceNumber.GetHashCode();
         }
         if (TextQualifiers != null)
         {
             hashCode = hashCode * 59 + TextQualifiers.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     return(InvoiceNumber.GetHashCode()
            ^ InvoiceType.GetHashCode()
            ^ InvoiceStatus.GetHashCode()
            ^ Lines.GetHashCode()
            ^ Total.GetHashCode()
            ^ Carrier.GetHashCode());
 }
 public int GetIdempotentKey()
 {
     unchecked
     {
         int hashCode = InvoiceNumber?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (OrderDetails?.GetIdempotentKey() ?? 0);
         hashCode = (hashCode * 397) ^ (OrderNumber?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Address != null)
         {
             hashCode = hashCode * 59 + Address.GetHashCode();
         }
         if (ChannelCode != null)
         {
             hashCode = hashCode * 59 + ChannelCode.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (Geocode != null)
         {
             hashCode = hashCode * 59 + Geocode.GetHashCode();
         }
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (InvoiceNumber != null)
         {
             hashCode = hashCode * 59 + InvoiceNumber.GetHashCode();
         }
         if (Mcc != null)
         {
             hashCode = hashCode * 59 + Mcc.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         return(hashCode);
     }
 }
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (InvoiceNumber?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Description?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (DateIssued?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Amount?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CustomerType?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CumulativeBalance?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TotalPrice?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (DescriptionTwo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Attribute?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (InvoiceAttachment?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Status?.GetHashCode() ?? 0);
            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (groupBookingId_ != null)
            {
                hash ^= GroupBookingId.GetHashCode();
            }
            if (InvoiceNumber != 0)
            {
                hash ^= InvoiceNumber.GetHashCode();
            }
            if (invoiceId_ != null)
            {
                hash ^= InvoiceId.GetHashCode();
            }
            if (Voided != false)
            {
                hash ^= Voided.GetHashCode();
            }
            if (createdBy_ != null)
            {
                hash ^= CreatedBy.GetHashCode();
            }
            if (voidedBy_ != null)
            {
                hash ^= VoidedBy.GetHashCode();
            }
            if (voidedAt_ != null)
            {
                hash ^= VoidedAt.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 8
0
        public override int GetHashCode()
        {
            int hashCode = 1321207967;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (Version != null)
            {
                hashCode += Version.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (OrderId != null)
            {
                hashCode += OrderId.GetHashCode();
            }

            if (PrimaryRecipient != null)
            {
                hashCode += PrimaryRecipient.GetHashCode();
            }

            if (PaymentRequests != null)
            {
                hashCode += PaymentRequests.GetHashCode();
            }

            if (DeliveryMethod != null)
            {
                hashCode += DeliveryMethod.GetHashCode();
            }

            if (InvoiceNumber != null)
            {
                hashCode += InvoiceNumber.GetHashCode();
            }

            if (Title != null)
            {
                hashCode += Title.GetHashCode();
            }

            if (Description != null)
            {
                hashCode += Description.GetHashCode();
            }

            if (ScheduledAt != null)
            {
                hashCode += ScheduledAt.GetHashCode();
            }

            if (PublicUrl != null)
            {
                hashCode += PublicUrl.GetHashCode();
            }

            if (NextPaymentAmountMoney != null)
            {
                hashCode += NextPaymentAmountMoney.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            if (Timezone != null)
            {
                hashCode += Timezone.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (UpdatedAt != null)
            {
                hashCode += UpdatedAt.GetHashCode();
            }

            if (CustomFields != null)
            {
                hashCode += CustomFields.GetHashCode();
            }

            return(hashCode);
        }
Ejemplo n.º 9
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (AgentNumericCode != null)
         {
             hashCode = hashCode * 59 + AgentNumericCode.GetHashCode();
         }
         if (Code != null)
         {
             hashCode = hashCode * 59 + Code.GetHashCode();
         }
         if (FlightDate != null)
         {
             hashCode = hashCode * 59 + FlightDate.GetHashCode();
         }
         if (FlightLegs != null)
         {
             hashCode = hashCode * 59 + FlightLegs.GetHashCode();
         }
         if (InvoiceNumber != null)
         {
             hashCode = hashCode * 59 + InvoiceNumber.GetHashCode();
         }
         if (IsETicket != null)
         {
             hashCode = hashCode * 59 + IsETicket.GetHashCode();
         }
         if (IsRegisteredCustomer != null)
         {
             hashCode = hashCode * 59 + IsRegisteredCustomer.GetHashCode();
         }
         if (IsRestrictedTicket != null)
         {
             hashCode = hashCode * 59 + IsRestrictedTicket.GetHashCode();
         }
         if (IsThirdParty != null)
         {
             hashCode = hashCode * 59 + IsThirdParty.GetHashCode();
         }
         if (IssueDate != null)
         {
             hashCode = hashCode * 59 + IssueDate.GetHashCode();
         }
         if (MerchantCustomerId != null)
         {
             hashCode = hashCode * 59 + MerchantCustomerId.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (PassengerName != null)
         {
             hashCode = hashCode * 59 + PassengerName.GetHashCode();
         }
         if (Passengers != null)
         {
             hashCode = hashCode * 59 + Passengers.GetHashCode();
         }
         if (PlaceOfIssue != null)
         {
             hashCode = hashCode * 59 + PlaceOfIssue.GetHashCode();
         }
         if (Pnr != null)
         {
             hashCode = hashCode * 59 + Pnr.GetHashCode();
         }
         if (PointOfSale != null)
         {
             hashCode = hashCode * 59 + PointOfSale.GetHashCode();
         }
         if (PosCityCode != null)
         {
             hashCode = hashCode * 59 + PosCityCode.GetHashCode();
         }
         if (TicketDeliveryMethod != null)
         {
             hashCode = hashCode * 59 + TicketDeliveryMethod.GetHashCode();
         }
         if (TicketNumber != null)
         {
             hashCode = hashCode * 59 + TicketNumber.GetHashCode();
         }
         if (TotalFare != null)
         {
             hashCode = hashCode * 59 + TotalFare.GetHashCode();
         }
         if (TotalFee != null)
         {
             hashCode = hashCode * 59 + TotalFee.GetHashCode();
         }
         if (TotalTaxes != null)
         {
             hashCode = hashCode * 59 + TotalTaxes.GetHashCode();
         }
         if (TravelAgencyName != null)
         {
             hashCode = hashCode * 59 + TravelAgencyName.GetHashCode();
         }
         return(hashCode);
     }
 }