/// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(ProviderId.GetHashCode() * 17 ^
                       EVSEId.GetHashCode() * 13 ^
                       Identification.GetHashCode() * 11 ^

                       (SessionId.HasValue
                            ? SessionId.GetHashCode() * 9
                            : 0) ^

                       (CPOPartnerSessionId.HasValue
                            ? CPOPartnerSessionId.GetHashCode() * 7
                            : 0) ^

                       (EMPPartnerSessionId.HasValue
                            ? EMPPartnerSessionId.GetHashCode() * 5
                            : 0) ^

                       (PartnerProductId.HasValue
                            ? PartnerProductId.GetHashCode() * 3
                            : 0) ^

                       (Duration.HasValue
                            ? Duration.GetHashCode()
                            : 0));
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         return(ProviderId.GetHashCode() * 17 ^ Suffix.GetHashCode());
     }
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            TypeConceptId.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0) ^
            (StopReason != null ? StopReason.GetHashCode() : 0) ^
            Refills.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            Quantity.GetHashCode() ^
            DaysSupply.GetHashCode() ^
            RouteConceptId.GetHashCode() ^
            EffectiveDrugDose.GetHashCode() ^
            DoseUnitConceptId.GetHashCode() ^
            SourceConceptId.GetHashCode() ^
            (Sig != null ? Sig.GetHashCode() : 0) ^
            (LotNumber != null ? LotNumber.GetHashCode() : 0) ^
            (RouteSourceValue != null ? RouteSourceValue.GetHashCode() : 0) ^
            (DoseUnitSourceValue != null ? DoseUnitSourceValue.GetHashCode() : 0) ^
            ProviderId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            (VerbatimEndDate.GetHashCode()) ^
            (StartTime != null ? StartTime.GetHashCode() : 0) ^
            (EndTime != null ? EndTime.GetHashCode() : 0));
 }
Esempio n. 4
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 (RequestorId != null)
         {
             hashCode = hashCode * 59 + RequestorId.GetHashCode();
         }
         if (Demand != null)
         {
             hashCode = hashCode * 59 + Demand.GetHashCode();
         }
         if (ProviderId != null)
         {
             hashCode = hashCode * 59 + ProviderId.GetHashCode();
         }
         if (Offer != null)
         {
             hashCode = hashCode * 59 + Offer.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         return(ProviderId.GetHashCode() * 3 ^
                AuthorizationIdentifications.GetHashCode());
     }
 }
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         return(ProviderId.GetHashCode() * 5 ^
                OperatorIds.GetHashCode() * 3);
     }
 }
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         return(ProviderId.GetHashCode() * 3 ^
                OperatorIds.Aggregate(0, (hashCode, operatorId) => hashCode ^ operatorId.GetHashCode()));
     }
 }
Esempio n. 8
0
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         return(ProviderId.GetHashCode() * 3 ^
                EVSEIds.Aggregate(0, (hashCode, evseId) => hashCode ^ evseId.GetHashCode()));
     }
 }
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         return(ProviderAuthenticationData.GetHashCode() * 5 ^
                ProviderId.GetHashCode() * 3 ^
                OICPAction.GetHashCode());
     }
 }
Esempio n. 10
0
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         return(ProviderId.GetHashCode() * 7 ^
                From.GetHashCode() * 5 ^
                To.GetHashCode());
     }
 }
Esempio n. 11
0
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(ProviderId.GetHashCode() * 7 ^
                       Suffix.GetHashCode() * 5 ^

                       (CheckDigit.HasValue
                            ? CheckDigit.GetHashCode()
                            : 0));
            }
        }
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            TypeConceptId.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            (StopReason != null ? StopReason.GetHashCode() : 0) ^
            ProviderId.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0));
 }
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(ProviderId.GetHashCode() * 17 ^
                       EVSEId.GetHashCode() * 7 ^
                       SessionId.GetHashCode() * 5 ^

                       (CPOPartnerSessionId?.GetHashCode() ?? 0) * 3 ^
                       (EMPPartnerSessionId?.GetHashCode() ?? 0));
            }
        }
Esempio n. 14
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            TypeConceptId.GetHashCode() ^
            ProviderId.GetHashCode() ^
            Quantity.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0) ^
            SourceConceptId.GetHashCode() ^
            (UniqueDeviceId != null ? UniqueDeviceId.GetHashCode() : 0) ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()));
 }
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(ProviderId.GetHashCode() * 17 ^
                       EVSEId.GetHashCode() * 13 ^
                       Identification.GetHashCode() * 11 ^

                       (SessionId?.GetHashCode() ?? 0) * 7 ^
                       (CPOPartnerSessionId?.GetHashCode() ?? 0) * 5 ^
                       (EMPPartnerSessionId?.GetHashCode() ?? 0) * 3 ^
                       (PartnerProductId?.GetHashCode() ?? 0));
            }
        }
Esempio n. 16
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ProviderId.Length != 0)
            {
                hash ^= ProviderId.GetHashCode();
            }
            if (Audiences.Length != 0)
            {
                hash ^= Audiences.GetHashCode();
            }
            return(hash);
        }
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(ProviderId.GetHashCode() * 17 ^
                       DistanceKM.GetHashCode() * 11 ^

                       (SearchCenter.HasValue
                            ? SearchCenter.GetHashCode() * 5
                            : 0) ^

                       (!EVSEStatusFilter.HasValue
                            ? EVSEStatusFilter.GetHashCode()
                            : 0));
            }
        }
Esempio n. 18
0
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(ProviderId.GetHashCode() * 17 ^
                       DistanceKM.GetHashCode() * 13 ^
                       GeoCoordinatesResponseFormat.GetHashCode() * 11 ^

                       (SearchCenter.HasValue
                            ? SearchCenter.GetHashCode() * 7
                            : 0) ^

                       (!LastCall.HasValue
                            ? LastCall.GetHashCode() * 5
                            : 0));
            }
        }
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(SessionId.GetHashCode() * 11 ^
                       ProviderId.GetHashCode() * 7 ^
                       EVSEId.GetHashCode() * 5 ^

                       (CPOPartnerSessionId.HasValue
                            ? CPOPartnerSessionId.GetHashCode() * 3
                            : 0) ^

                       (EMPPartnerSessionId.HasValue
                            ? EMPPartnerSessionId.GetHashCode()
                            : 0));
            }
        }
Esempio n. 20
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            TypeConceptId.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0) ^
            (StopReason != null ? StopReason.GetHashCode() : 0) ^
            Refills.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            Quantity.GetHashCode() ^
            DaysSupply.GetHashCode() ^
            (Sig != null ? Sig.GetHashCode() : 0) ^
            ProviderId.GetHashCode() ^
            RelevantConditionConceptId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()));
 }
Esempio n. 21
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ProviderId.Length != 0)
            {
                hash ^= ProviderId.GetHashCode();
            }
            if (Audiences.Length != 0)
            {
                hash ^= Audiences.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 22
0
        /// <summary>
        /// Gets the hash code for this object.
        /// </summary>
        /// <returns>
        /// The hash code for this object.
        /// </returns>
        /// <remarks>
        /// * CA2218:
        ///   * If two objects are equal in value based on the Equals override, they must both return the same value for calls
        ///     to GetHashCode.
        ///   * GetHashCode must be overridden whenever Equals is overridden.
        /// * It is fine if the value overflows.
        /// </remarks>
        public override int GetHashCode()
        {
            int result = GlobalId.GetHashCode() +
                         ParentDealId.GetHashCode() +
                         ProviderId.GetHashCode() +
                         MerchantId.GetHashCode() +
                         ProviderCategory.GetHashCode() +
                         StartDate.GetHashCode() +
                         EndDate.GetHashCode() +
                         Amount.GetHashCode() +
                         Count.GetHashCode() +
                         UserLimit.GetHashCode() +
                         MinimumPurchase.GetHashCode() +
                         MaximumDiscount.GetHashCode() +
                         DealStatusId.GetHashCode();

            if (MerchantName != null)
            {
                result += MerchantName.GetHashCode();
            }

            if (Currency != null)
            {
                result += Currency.GetHashCode();
            }

            if (DiscountSummary != null)
            {
                result += DiscountSummary.GetHashCode();
            }

            foreach (PartnerDealInfo partnerDealInfo in PartnerDealInfoList)
            {
                result += partnerDealInfo.GetHashCode();
            }

            if (DayTimeRestrictions != null)
            {
                result += DayTimeRestrictions.GetHashCode();
            }

            return(result);
        }
Esempio n. 23
0
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^
            PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            TypeConceptId.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0) ^
            SourceConceptId.GetHashCode() ^
            (CareSiteId.GetHashCode()) ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            AdmittingSourceConceptId.GetHashCode() ^
            (AdmittingSourceValue != null ? AdmittingSourceValue.GetHashCode() : 0) ^
            (ProviderKey != null ? ProviderKey.GetHashCode() : 0) ^
            (ProviderId.GetHashCode()) ^
            DischargeToConceptId.GetHashCode() ^
            (DischargeToSourceValue != null ? DischargeToSourceValue.GetHashCode() : 0) ^
            PrecedingVisitDetailId.GetHashCode() ^
            VisitDetailParentId.GetHashCode());
 }
Esempio n. 24
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            TypeConceptId.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            ValueAsNumber.GetHashCode() ^
            RangeLow.GetHashCode() ^
            RangeHigh.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            ValueAsConceptId.GetHashCode() ^
            Time.GetHashCode() ^
            ProviderId.GetHashCode() ^
            RelevantConditionConceptId.GetHashCode() ^
            UnitsConceptId.GetHashCode() ^
            (ValueAsString != null ? ValueAsString.GetHashCode() : 0) ^
            (UnitsSourceValue != null ? UnitsSourceValue.GetHashCode() : 0) ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0));
 }
Esempio n. 25
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            TypeConceptId.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            ValueAsNumber.GetHashCode() ^
            RangeLow.GetHashCode() ^
            RangeHigh.GetHashCode() ^
            OperatorConceptId.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            ValueAsConceptId.GetHashCode() ^
            (Time != null ? Time.GetHashCode() : 0) ^
            ProviderId.GetHashCode() ^
            (ValueSourceValue != null ? ValueSourceValue.GetHashCode() : 0) ^
            SourceConceptId.GetHashCode() ^
            UnitConceptId.GetHashCode() ^
            (UnitSourceValue != null ? UnitSourceValue.GetHashCode() : 0) ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0));
 }
 public override int GetHashCode()
 {
     return(DemandId.GetHashCode() + ProviderId.GetHashCode());
 }
Esempio n. 27
0
 public override int GetHashCode()
 {
     unchecked {
         return((ProviderId.GetHashCode() * 397) ^ (int)EventIdAndVersion);
     }
 }