public EVSEAlreadyExistsInGroup(EVSEGroup EVSEGroup,
                                        EVSE_Id EVSEId)

            : base(EVSEGroup.Operator,
                   "The given EVSE identification '" + EVSEId + "' already exists within the given '" + EVSEGroup.Id + "' charging group!")

        {
        }
Exemple #2
0
        /// <summary>
        /// Compares two charging pools for equality.
        /// </summary>
        /// <param name="EVSEGroup">A EVSE group to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public Boolean Equals(EVSEGroup EVSEGroup)
        {
            if ((Object)EVSEGroup == null)
            {
                return(false);
            }

            return(Id.Equals(EVSEGroup.Id));
        }
Exemple #3
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="EVSEGroup">A EVSE group object to compare with.</param>
        public Int32 CompareTo(EVSEGroup EVSEGroup)
        {
            if ((Object)EVSEGroup == null)
            {
                throw new ArgumentNullException(nameof(EVSEGroup), "The given EVSE group must not be null!");
            }

            return(Id.CompareTo(EVSEGroup.Id));
        }