コード例 #1
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));
        }