示例#1
0
 /// <summary>
 /// Determines whether the specified metadata object is equal to the current metadata.
 /// </summary>
 /// <param name="other">The metadata object to compare with the current metadata.</param>
 /// <returns>
 /// <b>true</b> if the specified metadata object is equal to the current metadata;
 /// otherwise, <b>false</b>.
 /// </returns>
 public bool Equals(FirmwareMetadata other)
 {
     if (other is null)
     {
         return(false);
     }
     return(DeviceName == other.DeviceName &&
            FirmwareVersion.Equals(other.FirmwareVersion) &&
            ProtocolVersion.Equals(other.ProtocolVersion) &&
            HardwareVersion.Equals(other.HardwareVersion) &&
            AssemblyNumber == other.AssemblyNumber &&
            PrereleaseVersion == other.PrereleaseVersion);
 }
示例#2
0
        /// <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));
        }