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

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            hash ^= phones_.GetHashCode();
            if (lastUpdated_ != null)
            {
                hash ^= LastUpdated.GetHashCode();
            }
            if (address_ != null)
            {
                hash ^= Address.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
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 (ProductId != null)
         {
             hashCode = hashCode * 59 + ProductId.GetHashCode();
         }
         if (EffectiveFrom != null)
         {
             hashCode = hashCode * 59 + EffectiveFrom.GetHashCode();
         }
         if (EffectiveTo != null)
         {
             hashCode = hashCode * 59 + EffectiveTo.GetHashCode();
         }
         if (LastUpdated != null)
         {
             hashCode = hashCode * 59 + LastUpdated.GetHashCode();
         }
         if (ProductCategory != null)
         {
             hashCode = hashCode * 59 + ProductCategory.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (Brand != null)
         {
             hashCode = hashCode * 59 + Brand.GetHashCode();
         }
         if (BrandName != null)
         {
             hashCode = hashCode * 59 + BrandName.GetHashCode();
         }
         if (ApplicationUri != null)
         {
             hashCode = hashCode * 59 + ApplicationUri.GetHashCode();
         }
         if (IsTailored != null)
         {
             hashCode = hashCode * 59 + IsTailored.GetHashCode();
         }
         if (AdditionalInformation != null)
         {
             hashCode = hashCode * 59 + AdditionalInformation.GetHashCode();
         }
         return(hashCode);
     }
 }
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (EntryDate?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (RouteNumber?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (LastUpdated?.GetHashCode() ?? 0);
            return(hashCode);
        }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (WeatherReading != null ? WeatherReading.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ RunTime.GetHashCode();
         hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode();
         hashCode = (hashCode * 397) ^ (ETag != null ? ETag.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            hash ^= phones_.GetHashCode();
            if (lastUpdated_ != null)
            {
                hash ^= LastUpdated.GetHashCode();
            }
            if (duration_ != null)
            {
                hash ^= Duration.GetHashCode();
            }
            if (doubleTestNullType_ != null)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DoubleTestNullType);
            }
            if (floaTestNullType_ != null)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.GetHashCode(FloaTestNullType);
            }
            if (int32TestNullType_ != null)
            {
                hash ^= Int32TestNullType.GetHashCode();
            }
            if (int64TestNullType_ != null)
            {
                hash ^= Int64TestNullType.GetHashCode();
            }
            if (stringTestNullType_ != null)
            {
                hash ^= StringTestNullType.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 6
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode();
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode();
         hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (WorkspaceId != null ? WorkspaceId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BranchName != null ? BranchName.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 7
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode();
         hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode();
         hashCode = (hashCode * 397) ^ (Workspaces != null ? Workspaces.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 8
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Adds;
         hashCode = (hashCode * 397) ^ Updates;
         hashCode = (hashCode * 397) ^ Removes;
         hashCode = (hashCode * 397) ^ Refreshes;
         hashCode = (hashCode * 397) ^ Moves;
         hashCode = (hashCode * 397) ^ Count;
         hashCode = (hashCode * 397) ^ Index;
         hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 9
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = (CreatedBy != null ? CreatedBy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode();
         hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode();
         hashCode = (hashCode * 397) ^ (RootWorkspace != null ? RootWorkspace.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Source != null ? Source.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Target != null ? Target.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Type;
         hashCode = (hashCode * 397) ^ Order;
         hashCode = (hashCode * 397) ^ (ReturnValue != null ? ReturnValue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ComponentModel != null ? ComponentModel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode();
         hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode();
         hashCode = (hashCode * 397) ^ (Components != null ? Components.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (References != null ? References.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Tags != null ? Tags.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 11
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (PlayerId.Length != 0)
        {
            hash ^= PlayerId.GetHashCode();
        }
        if (DisplayName.Length != 0)
        {
            hash ^= DisplayName.GetHashCode();
        }
        if (PlayerIdHash != 0)
        {
            hash ^= PlayerIdHash.GetHashCode();
        }
        if (ShortPlayerId.Length != 0)
        {
            hash ^= ShortPlayerId.GetHashCode();
        }
        if (FirebaseUid.Length != 0)
        {
            hash ^= FirebaseUid.GetHashCode();
        }
        if (Email.Length != 0)
        {
            hash ^= Email.GetHashCode();
        }
        if (LoginToken.Length != 0)
        {
            hash ^= LoginToken.GetHashCode();
        }
        if (StartPlaying.Length != 0)
        {
            hash ^= StartPlaying.GetHashCode();
        }
        if (LastUpdated.Length != 0)
        {
            hash ^= LastUpdated.GetHashCode();
        }
        hash ^= repeatedInner_.GetHashCode();
        return(hash);
    }
Ejemplo n.º 12
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Model != null ? Model.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode();
         hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode();
         hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RootWorkspace != null ? RootWorkspace.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Children != null ? Children.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Parent != null ? Parent.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TypeId != null ? TypeId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 13
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 31 + CyclistsRequested.GetHashCode();
            hash = hash * 31 + Date.GetHashCode();
            hash = hash * 31 + DipsNumber.GetHashCode();
            hash = hash * 31 + EndTime.GetHashCode();
            hash = hash * 31 + Id.GetHashCode();
            hash = hash * 31 + Name.GetHashCode();
            hash = hash * 31 + StartTime.GetHashCode();
            hash = hash * 31 + Status.GetHashCode();
            hash = hash * 31 + WiderDistribution.GetHashCode();
            hash = hash * 31 + BriefingNotesSent.GetHashCode();
            hash = hash * 31 + DateConfirmed.GetHashCode();
            hash = hash * 31 + Created.GetHashCode();
            hash = hash * 31 + LastUpdated.GetHashCode();
            hash = hash * 31 + (CreatedBy ?? string.Empty).GetHashCode();
            hash = hash * 31 + (UpdatedBy ?? string.Empty).GetHashCode();
            return(hash);
        }
Ejemplo n.º 14
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 31 + AmbulancesAvailable.GetHashCode();
            hash = hash * 31 + BriefingNotesSent.GetHashCode();
            hash = hash * 31 + (ControlPhoneNumber ?? string.Empty).GetHashCode();
            hash = hash * 31 + Created.GetHashCode();
            hash = hash * 31 + (CreatedBy ?? string.Empty).GetHashCode();
            hash = hash * 31 + CruTrackingInUse.GetHashCode();
            hash = hash * 31 + CyclistsRequested.GetHashCode();
            hash = hash * 31 + Date.GetHashCode();
            hash = hash * 31 + DateConfirmed.GetHashCode();
            hash = hash * 31 + (Description ?? string.Empty).GetHashCode();
            hash = hash * 31 + DipsNumber.GetHashCode();
            hash = hash * 31 + DoctorsPresent.GetHashCode();
            hash = hash * 31 + EndTime.GetHashCode();
            hash = hash * 31 + ExpectingBadWeather.GetHashCode();
            hash = hash * 31 + (FallbackRadioChannel ?? string.Empty).GetHashCode();
            hash = hash * 31 + FirstAidersAvailable.GetHashCode();
            hash = hash * 31 + FirstAidUnitsAvailable.GetHashCode();
            hash = hash * 31 + HasSeriousHistory.GetHashCode();
            hash = hash * 31 + HighSpeedRoadsAtEvent.GetHashCode();
            hash = hash * 31 + Id.GetHashCode();
            hash = hash * 31 + LastEmailedOut.GetHashCode();
            hash = hash * 31 + LastUpdated.GetHashCode();
            hash = hash * 31 + (Location ?? string.Empty).GetHashCode();
            hash = hash * 31 + Name.GetHashCode();
            hash = hash * 31 + ParamedicsAvailable.GetHashCode();
            hash = hash * 31 + (PostCode ?? string.Empty).GetHashCode();
            hash = hash * 31 + (RadioChannel ?? string.Empty).GetHashCode();
            hash = hash * 31 + SoloRespondingExpected.GetHashCode();
            hash = hash * 31 + StartTime.GetHashCode();
            hash = hash * 31 + Status.GetHashCode();
            hash = hash * 31 + (UpdatedBy ?? string.Empty).GetHashCode();
            hash = hash * 31 + UsingAirwave.GetHashCode();
            hash = hash * 31 + UsingSJARadio.GetHashCode();
            hash = hash * 31 + WiderDistribution.GetHashCode();
            return(hash);
        }
Ejemplo n.º 15
0
 public override int GetHashCode() =>
 LastUpdated.GetHashCode() ^
 CodePage.GetHashCode() ^
 RecordCount.GetHashCode() ^
 Schema.GetHashCode();