/// <summary> /// Compares two boot notification requests for equality. /// </summary> /// <param name="BootNotificationRequest">A boot notification request to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(BootNotificationRequest BootNotificationRequest) { if (BootNotificationRequest is null) { return(false); } return(ChargePointVendor.Equals(BootNotificationRequest.ChargePointVendor) && ChargePointModel.Equals(BootNotificationRequest.ChargePointModel) && ((ChargePointSerialNumber == null && BootNotificationRequest.ChargePointSerialNumber == null) || (ChargePointSerialNumber != null && BootNotificationRequest.ChargePointSerialNumber != null && String.Equals(ChargePointSerialNumber, BootNotificationRequest.ChargePointSerialNumber, StringComparison.OrdinalIgnoreCase))) && ((ChargeBoxSerialNumber == null && BootNotificationRequest.ChargeBoxSerialNumber == null) || (ChargeBoxSerialNumber != null && BootNotificationRequest.ChargeBoxSerialNumber != null && String.Equals(ChargeBoxSerialNumber, BootNotificationRequest.ChargeBoxSerialNumber, StringComparison.OrdinalIgnoreCase))) && ((ChargePointSerialNumber == null && BootNotificationRequest.ChargePointSerialNumber == null) || (ChargePointSerialNumber != null && BootNotificationRequest.ChargePointSerialNumber != null && String.Equals(ChargePointSerialNumber, BootNotificationRequest.ChargePointSerialNumber, StringComparison.OrdinalIgnoreCase))) && ((FirmwareVersion == null && BootNotificationRequest.FirmwareVersion == null) || (FirmwareVersion != null && BootNotificationRequest.FirmwareVersion != null && String.Equals(FirmwareVersion, BootNotificationRequest.FirmwareVersion, StringComparison.OrdinalIgnoreCase))) && ((Iccid == null && BootNotificationRequest.Iccid == null) || (Iccid != null && BootNotificationRequest.Iccid != null && String.Equals(Iccid, BootNotificationRequest.Iccid, StringComparison.OrdinalIgnoreCase))) && ((IMSI == null && BootNotificationRequest.IMSI == null) || (IMSI != null && BootNotificationRequest.IMSI != null && String.Equals(IMSI, BootNotificationRequest.IMSI, StringComparison.OrdinalIgnoreCase))) && ((MeterType == null && BootNotificationRequest.MeterType == null) || (MeterType != null && BootNotificationRequest.MeterType != null && String.Equals(MeterType, BootNotificationRequest.MeterType, StringComparison.OrdinalIgnoreCase))) && ((MeterSerialNumber == null && BootNotificationRequest.MeterSerialNumber == null) || (MeterSerialNumber != null && BootNotificationRequest.MeterSerialNumber != null && String.Equals(MeterSerialNumber, BootNotificationRequest.MeterSerialNumber, StringComparison.OrdinalIgnoreCase)))); }
/// <summary> /// Return the HashCode of this object. /// </summary> /// <returns>The HashCode of this object.</returns> public override Int32 GetHashCode() { unchecked { return(ChargePointVendor.GetHashCode() * 31 ^ ChargePointModel.GetHashCode() * 29 ^ ChargePointSerialNumber.GetHashCode() * 23 ^ FirmwareVersion.GetHashCode() * 17 ^ Iccid.GetHashCode() * 11 ^ IMSI.GetHashCode() * 7 ^ MeterType.GetHashCode() * 5 ^ MeterSerialNumber.GetHashCode()); } }
/// <summary> /// Compares two boot notification requests for equality. /// </summary> /// <param name="BootNotificationRequest">A boot notification request to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(BootNotificationRequest BootNotificationRequest) { if ((Object)BootNotificationRequest == null) { return(false); } return(ChargePointVendor.Equals(BootNotificationRequest.ChargePointVendor) && ChargePointModel.Equals(BootNotificationRequest.ChargePointModel) && ChargePointSerialNumber.Equals(BootNotificationRequest.ChargePointSerialNumber) && FirmwareVersion.Equals(BootNotificationRequest.FirmwareVersion) && Iccid.Equals(BootNotificationRequest.Iccid) && IMSI.Equals(BootNotificationRequest.IMSI) && MeterType.Equals(BootNotificationRequest.MeterType) && MeterSerialNumber.Equals(BootNotificationRequest.MeterSerialNumber)); }
/// <summary> /// Return the HashCode of this object. /// </summary> /// <returns>The HashCode of this object.</returns> public override Int32 GetHashCode() { unchecked { return(ChargePointVendor.GetHashCode() * 31 ^ ChargePointModel.GetHashCode() * 29 ^ (ChargePointSerialNumber != null ? ChargePointSerialNumber.GetHashCode() * 21 : 0) ^ (ChargeBoxSerialNumber != null ? ChargeBoxSerialNumber.GetHashCode() * 17 : 0) ^ (FirmwareVersion != null ? FirmwareVersion.GetHashCode() * 13 : 0) ^ (Iccid != null ? Iccid.GetHashCode() * 11 : 0) ^ (IMSI != null ? IMSI.GetHashCode() * 7 : 0) ^ (MeterType != null ? MeterType.GetHashCode() * 5 : 0) ^ (MeterSerialNumber != null ? MeterSerialNumber.GetHashCode() * 3 : 0)); } }