Example #1
0
        /// <summary>
        /// Compares two EVSE identifications for equality.
        /// </summary>
        /// <param name="AuthInfo">An EVSE identification to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public Boolean Equals(AuthInfo AuthInfo)
        {
            if ((Object)AuthInfo == null)
            {
                return(false);
            }

            if (_AuthToken != null && AuthInfo._AuthToken != null)
            {
                return(_AuthToken.Equals(AuthInfo._AuthToken));
            }

            if (_QRCodeIdentification != null && AuthInfo._QRCodeIdentification != null)
            {
                return(_QRCodeIdentification.Equals(AuthInfo._QRCodeIdentification));
            }

            if (_PlugAndChargeIdentification != null && AuthInfo._PlugAndChargeIdentification != null)
            {
                return(_PlugAndChargeIdentification.Equals(AuthInfo._PlugAndChargeIdentification));
            }

            if (_RemoteIdentification != null && AuthInfo._RemoteIdentification != null)
            {
                return(_RemoteIdentification.Equals(AuthInfo._RemoteIdentification));
            }

            return(false);
        }