/// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="OperatorEVSEStatus">An object to compare with.</param>
        public Int32 CompareTo(OperatorEVSEStatus OperatorEVSEStatus)
        {
            if ((Object)OperatorEVSEStatus == null)
            {
                throw new ArgumentNullException(nameof(OperatorEVSEStatus), "The given OperatorEVSEStatus must not be null!");
            }

            return(OperatorId.CompareTo(OperatorEVSEStatus.OperatorId));
        }
Esempio n. 2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="OperatorEVSEData">An object to compare with.</param>
        public Int32 CompareTo(OperatorEVSEData OperatorEVSEData)
        {
            if ((Object)OperatorEVSEData == null)
            {
                throw new ArgumentNullException(nameof(OperatorEVSEData), "The given operator EVSE data must not be null!");
            }

            return(OperatorId.CompareTo(OperatorEVSEData.OperatorId));
        }
Esempio n. 3
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="EVSEId">An object to compare with.</param>
        public Int32 CompareTo(EVSE_Id EVSEId)
        {
            if ((Object)EVSEId == null)
            {
                throw new ArgumentNullException(nameof(EVSEId), "The given EVSE identification must not be null!");
            }

            var _Result = OperatorId.CompareTo(EVSEId.OperatorId);

            if (_Result == 0)
            {
                _Result = String.Compare(MinSuffix, EVSEId.MinSuffix, StringComparison.OrdinalIgnoreCase);
            }

            return(_Result);
        }
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="ReservationId">An object to compare with.</param>
        public Int32 CompareTo(ChargingReservation_Id ReservationId)
        {
            if ((Object)ReservationId == null)
            {
                throw new ArgumentNullException(nameof(ReservationId), "The given charging reservation identification must not be null!");
            }

            // If equal: Compare charging operator identifications
            var _Result = OperatorId.CompareTo(ReservationId.OperatorId);

            // If equal: Compare charging reservationId suffix
            if (_Result == 0)
            {
                _Result = String.Compare(Suffix, ReservationId.Suffix, StringComparison.Ordinal);
            }

            return(_Result);
        }
Esempio n. 5
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="ChargingStationId">An object to compare with.</param>
        public Int32 CompareTo(ChargingStation_Id ChargingStationId)
        {
            if ((Object)ChargingStationId == null)
            {
                throw new ArgumentNullException(nameof(ChargingStationId), "The given charging station identification must not be null!");
            }

            // Compare the length of the ChargingStationIds
            var _Result = Length.CompareTo(ChargingStationId.Length);

            // If equal: Compare charging operator identifications
            if (_Result == 0)
            {
                _Result = OperatorId.CompareTo(ChargingStationId.OperatorId);
            }

            // If equal: Compare ChargingStationId suffix
            if (_Result == 0)
            {
                _Result = String.Compare(Suffix, ChargingStationId.Suffix, StringComparison.Ordinal);
            }

            return(_Result);
        }
Esempio n. 6
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="EVSEOperator_Id">An object to compare with.</param>
        public Int32 CompareTo(ParkingOperator_Id EVSEOperator_Id)
        {
            if ((Object)EVSEOperator_Id == null)
            {
                throw new ArgumentNullException("The given EVSEOperator_Id must not be null!");
            }

            // Compare the length of the EVSEOperator_Ids
            var _Result = this.Length.CompareTo(EVSEOperator_Id.Length);

            // If equal: Compare CountryIds
            if (_Result == 0)
            {
                _Result = CountryCode.CompareTo(EVSEOperator_Id.CountryCode);
            }

            // If equal: Compare charging operator identifications
            if (_Result == 0)
            {
                _Result = OperatorId.CompareTo(EVSEOperator_Id.OperatorId);
            }

            return(_Result);
        }
Esempio n. 7
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="EVSEGroupId">An object to compare with.</param>
        public Int32 CompareTo(EVSEGroup_Id EVSEGroupId)
        {
            if ((Object)EVSEGroupId == null)
            {
                throw new ArgumentNullException(nameof(EVSEGroupId), "The given EVSE group identification must not be null!");
            }

            // Compare the length of the identifications
            var _Result = this.Length.CompareTo(EVSEGroupId.Length);

            // If equal: Compare charging operator identifications
            if (_Result == 0)
            {
                _Result = OperatorId.CompareTo(EVSEGroupId.OperatorId);
            }

            // If equal: Compare suffix
            if (_Result == 0)
            {
                _Result = String.Compare(Suffix, EVSEGroupId.Suffix, StringComparison.Ordinal);
            }

            return(_Result);
        }