Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (StatusMessage.Length != 0)
            {
                hash ^= StatusMessage.GetHashCode();
            }
            if (SelfCheckPassed != false)
            {
                hash ^= SelfCheckPassed.GetHashCode();
            }
            if (ServiceModeEnabled != false)
            {
                hash ^= ServiceModeEnabled.GetHashCode();
            }
            if (AdditionalUptimeInSeconds != 0)
            {
                hash ^= AdditionalUptimeInSeconds.GetHashCode();
            }
            if (Pressure != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Pressure);
            }
            if (Temperature != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Temperature);
            }
            if (Distance != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (StatusMessage.Length != 0)
            {
                hash ^= StatusMessage.GetHashCode();
            }
            if (SelfCheckPassed != false)
            {
                hash ^= SelfCheckPassed.GetHashCode();
            }
            if (ServiceModeEnabled != false)
            {
                hash ^= ServiceModeEnabled.GetHashCode();
            }
            if (UptimeInSeconds != 0UL)
            {
                hash ^= UptimeInSeconds.GetHashCode();
            }
            if (pressure_ != null)
            {
                hash ^= Pressure.GetHashCode();
            }
            if (temperature_ != null)
            {
                hash ^= Temperature.GetHashCode();
            }
            if (distance_ != null)
            {
                hash ^= Distance.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }