public override int GetHashCode()
        {
            int hash = 1;

            if (HasKeyData)
            {
                hash ^= KeyData.GetHashCode();
            }
            if (HasTransmissionRiskLevel)
            {
                hash ^= TransmissionRiskLevel.GetHashCode();
            }
            if (HasRollingStartIntervalNumber)
            {
                hash ^= RollingStartIntervalNumber.GetHashCode();
            }
            if (HasRollingPeriod)
            {
                hash ^= RollingPeriod.GetHashCode();
            }
            if (HasReportType)
            {
                hash ^= ReportType.GetHashCode();
            }
            if (HasDaysSinceOnsetOfSymptoms)
            {
                hash ^= DaysSinceOnsetOfSymptoms.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            var hash = 1;

            if (HasKeyData)
            {
                hash ^= KeyData.GetHashCode();
            }
            if (HasTransmissionRiskLevel)
            {
                hash ^= TransmissionRiskLevel.GetHashCode();
            }
            if (HasRollingStartIntervalNumber)
            {
                hash ^= RollingStartIntervalNumber.GetHashCode();
            }
            if (HasRollingPeriod)
            {
                hash ^= RollingPeriod.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }

            return(hash);
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            switch (ScriptType)
            {
            case CfdDescriptorScriptType.Taproot:
                return(ScriptType.GetHashCode() + KeyData.GetHashCode() + ScriptTree.GetHashCode());

            case CfdDescriptorScriptType.Pk:
            case CfdDescriptorScriptType.Pkh:
            case CfdDescriptorScriptType.Wpkh:
            case CfdDescriptorScriptType.Combo:
                return(ScriptType.GetHashCode() + KeyData.GetHashCode());

            case CfdDescriptorScriptType.Sh:
            case CfdDescriptorScriptType.Wsh:
            case CfdDescriptorScriptType.Multi:
            case CfdDescriptorScriptType.SortedMulti:
            case CfdDescriptorScriptType.Raw:
                return(ScriptType.GetHashCode() + RedeemScript.GetHashCode());

            case CfdDescriptorScriptType.Addr:
                return(ScriptType.GetHashCode() + Address.GetHashCode());

            default:
                return(ScriptType.GetHashCode());
            }
        }
 public override int GetHashCode() {
     int hash = 1;
     if (KeyData.Length != 0) hash ^= KeyData.GetHashCode();
     if (RollingStartIntervalNumber != 0) hash ^= RollingStartIntervalNumber.GetHashCode();
     if (RollingPeriod != 0) hash ^= RollingPeriod.GetHashCode();
     if (TransmissionRiskLevel != 0) hash ^= TransmissionRiskLevel.GetHashCode();
     hash ^= visitedCountries_.GetHashCode();
     if (Origin.Length != 0) hash ^= Origin.GetHashCode();
     if (ReportType != global::Iks.Protobuf.EfgsReportType.Unknown) hash ^= ReportType.GetHashCode();
     if (DaysSinceOnsetOfSymptoms != 0) hash ^= DaysSinceOnsetOfSymptoms.GetHashCode();
     if (_unknownFields != null) {
         hash ^= _unknownFields.GetHashCode();
     }
     return hash;
 }
Esempio n. 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (KeyData.Length != 0)
            {
                hash ^= KeyData.GetHashCode();
            }
            if (RollingStartIntervalNumber != 0)
            {
                hash ^= RollingStartIntervalNumber.GetHashCode();
            }
            if (RollingPeriod != 0)
            {
                hash ^= RollingPeriod.GetHashCode();
            }
            if (TransmissionRiskLevel != 0)
            {
                hash ^= TransmissionRiskLevel.GetHashCode();
            }
            hash ^= visitedCountries_.GetHashCode();
            if (Origin.Length != 0)
            {
                hash ^= Origin.GetHashCode();
            }
            if (ReportType != global::FederationGatewayApi.Models.Proto.TemporaryExposureKeyGatewayDto.Types.ReportType.Unknown)
            {
                hash ^= ReportType.GetHashCode();
            }
            if (DaysSinceOnsetOfSymptoms != 0)
            {
                hash ^= DaysSinceOnsetOfSymptoms.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 6
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.version)
            {
                hashcode = (hashcode * 397) + Version.GetHashCode();
            }
            if (__isset.keyId)
            {
                hashcode = (hashcode * 397) + KeyId.GetHashCode();
            }
            if (__isset.keyData)
            {
                hashcode = (hashcode * 397) + KeyData.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
        }
        return(hashcode);
    }