コード例 #1
0
        public EVSEAlreadyExistsInGroup(EVSEGroup EVSEGroup,
                                        EVSE_Id EVSEId)

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

        {
        }
コード例 #2
0
ファイル: EVSEGroup.cs プロジェクト: rsegovia/WWCP_Core
        /// <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));
        }
コード例 #3
0
ファイル: EVSEGroup.cs プロジェクト: rsegovia/WWCP_Core
        /// <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));
        }