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

            if (VehicleId.Length != 0)
            {
                hash ^= VehicleId.GetHashCode();
            }
            if (SensorId.Length != 0)
            {
                hash ^= SensorId.GetHashCode();
            }
            if (Speed != 0)
            {
                hash ^= Speed.GetHashCode();
            }
            if (Temperature != 0)
            {
                hash ^= Temperature.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return
         (Timestamp.GetHashCode() +
          SensorId.GetHashCode() +
          SensorMAC.GetHashCode() +
          Type.GetHashCode() +
          Value.GetHashCode());
 }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MaxDistanceValid != false)
            {
                hash ^= MaxDistanceValid.GetHashCode();
            }
            if (SensorIdValid != false)
            {
                hash ^= SensorIdValid.GetHashCode();
            }
            if (RadarPowerValid != false)
            {
                hash ^= RadarPowerValid.GetHashCode();
            }
            if (OutputTypeValid != false)
            {
                hash ^= OutputTypeValid.GetHashCode();
            }
            if (SendQualityValid != false)
            {
                hash ^= SendQualityValid.GetHashCode();
            }
            if (SendExtInfoValid != false)
            {
                hash ^= SendExtInfoValid.GetHashCode();
            }
            if (SortIndexValid != false)
            {
                hash ^= SortIndexValid.GetHashCode();
            }
            if (StoreInNvmValid != false)
            {
                hash ^= StoreInNvmValid.GetHashCode();
            }
            if (CtrlRelayValid != false)
            {
                hash ^= CtrlRelayValid.GetHashCode();
            }
            if (RcsThresholdValid != false)
            {
                hash ^= RcsThresholdValid.GetHashCode();
            }
            if (MaxDistance != 0)
            {
                hash ^= MaxDistance.GetHashCode();
            }
            if (SensorId != 0)
            {
                hash ^= SensorId.GetHashCode();
            }
            if (OutputType != 0)
            {
                hash ^= OutputType.GetHashCode();
            }
            if (RadarPower != 0)
            {
                hash ^= RadarPower.GetHashCode();
            }
            if (CtrlRelay != 0)
            {
                hash ^= CtrlRelay.GetHashCode();
            }
            if (SendExtInfo != false)
            {
                hash ^= SendExtInfo.GetHashCode();
            }
            if (SendQuality != false)
            {
                hash ^= SendQuality.GetHashCode();
            }
            if (SortIndex != 0)
            {
                hash ^= SortIndex.GetHashCode();
            }
            if (StoreInNvm != 0)
            {
                hash ^= StoreInNvm.GetHashCode();
            }
            if (RcsThreshold != 0)
            {
                hash ^= RcsThreshold.GetHashCode();
            }
            if (InputSendInterval != 0UL)
            {
                hash ^= InputSendInterval.GetHashCode();
            }
            return(hash);
        }