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);
        }
 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;
 }
示例#4
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);
        }