public bool Equals(HMIStatus other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (!object.Equals(Header, other.Header)) { return(false); } if (!modes_.Equals(other.modes_)) { return(false); } if (CurrentMode != other.CurrentMode) { return(false); } if (!maps_.Equals(other.maps_)) { return(false); } if (CurrentMap != other.CurrentMap) { return(false); } if (!vehicles_.Equals(other.vehicles_)) { return(false); } if (CurrentVehicle != other.CurrentVehicle) { return(false); } if (!Modules.Equals(other.Modules)) { return(false); } if (!MonitoredComponents.Equals(other.MonitoredComponents)) { return(false); } if (DockerImage != other.DockerImage) { return(false); } if (UtmZoneId != other.UtmZoneId) { return(false); } if (PassengerMsg != other.PassengerMsg) { return(false); } return(true); }
public override int GetHashCode() { int hash = 1; if (header_ != null) { hash ^= Header.GetHashCode(); } hash ^= modes_.GetHashCode(); if (CurrentMode.Length != 0) { hash ^= CurrentMode.GetHashCode(); } hash ^= maps_.GetHashCode(); if (CurrentMap.Length != 0) { hash ^= CurrentMap.GetHashCode(); } hash ^= vehicles_.GetHashCode(); if (CurrentVehicle.Length != 0) { hash ^= CurrentVehicle.GetHashCode(); } hash ^= Modules.GetHashCode(); hash ^= MonitoredComponents.GetHashCode(); if (DockerImage.Length != 0) { hash ^= DockerImage.GetHashCode(); } if (UtmZoneId != 0) { hash ^= UtmZoneId.GetHashCode(); } if (PassengerMsg.Length != 0) { hash ^= PassengerMsg.GetHashCode(); } return(hash); }