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

            return(_Id.Equals(EVSEStatus._Id) &&
                   _Status.Equals(EVSEStatus._Status));
        }
Пример #2
0
        /// <summary>
        /// Compares two EVSE identifications for equality.
        /// </summary>
        /// <param name="EVSEStatusChange">An EVSE identification to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public Boolean Equals(EVSEStatusChange EVSEStatusChange)
        {
            if ((Object)EVSEStatusChange == null)
            {
                return(false);
            }

            return(_Id.Equals(EVSEStatusChange._Id) &&
                   _OldStatus.Equals(EVSEStatusChange._OldStatus) &&
                   _NewStatus.Equals(EVSEStatusChange._NewStatus));
        }