Ejemplo n.º 1
0
        NoOperation(IId AuthId,
                    IReceiveStatus IReceiveStatus,
                    String Description             = null,
                    IEnumerable <Warning> Warnings = null,
                    TimeSpan?Runtime = null)

        => new PushEVSEStatusResult(AuthId,
                                    IReceiveStatus,
                                    PushEVSEStatusResultTypes.NoOperation,
                                    Description,
                                    new EVSEStatusUpdate[0],
                                    Warnings,
                                    Runtime);
Ejemplo n.º 2
0
        Success(IId AuthId,
                IReceiveStatus IReceiveStatus,
                String Description             = null,
                IEnumerable <Warning> Warnings = null,
                TimeSpan?Runtime = null)

        => new PushChargingPoolStatusResult(AuthId,
                                            IReceiveStatus,
                                            PushChargingPoolStatusResultTypes.Success,
                                            Description,
                                            new ChargingPoolStatusUpdate[0],
                                            Warnings,
                                            Runtime);
Ejemplo n.º 3
0
        public static PushEVSEStatusResult Error(IId AuthId,
                                                 IReceiveStatus IReceiveStatus,
                                                 IEnumerable <EVSEStatusUpdate> RejectedEVSEs = null,
                                                 String Description             = null,
                                                 IEnumerable <Warning> Warnings = null,
                                                 TimeSpan?Runtime = null)

        => new PushEVSEStatusResult(AuthId,
                                    IReceiveStatus,
                                    PushEVSEStatusResultTypes.Error,
                                    Description,
                                    RejectedEVSEs,
                                    Warnings,
                                    Runtime);
Ejemplo n.º 4
0
        AdminDown(IId AuthId,
                  IReceiveStatus IReceiveStatus,
                  IEnumerable <ChargingPoolStatusUpdate> RejectedEVSEStatusUpdates,
                  String Description             = null,
                  IEnumerable <Warning> Warnings = null,
                  TimeSpan?Runtime = null)

        => new PushEVSEStatusResult(AuthId,
                                    IReceiveStatus,
                                    PushEVSEStatusResultTypes.AdminDown,
                                    Description,
                                    new EVSEStatusUpdate[0],
                                    Warnings,
                                    Runtime);
Ejemplo n.º 5
0
        OutOfService(IId AuthId,
                     IReceiveStatus IReceiveStatus,
                     IEnumerable <EVSEStatusUpdate> RejectedEVSEStatusUpdates,
                     String Description             = null,
                     IEnumerable <Warning> Warnings = null,
                     TimeSpan?Runtime = null)

        => new PushEVSEStatusResult(AuthId,
                                    IReceiveStatus,
                                    PushEVSEStatusResultTypes.OutOfService,
                                    Description,
                                    RejectedEVSEStatusUpdates,
                                    Warnings,
                                    Runtime);
Ejemplo n.º 6
0
        OutOfService(IId AuthId,
                     IReceiveStatus IReceiveStatus,
                     IEnumerable <ChargingStationStatusUpdate> RejectedChargingPoolStatusUpdates,
                     String Description             = null,
                     IEnumerable <Warning> Warnings = null,
                     TimeSpan?Runtime = null)

        => new PushChargingPoolStatusResult(AuthId,
                                            IReceiveStatus,
                                            PushChargingPoolStatusResultTypes.OutOfService,
                                            Description,
                                            new ChargingPoolStatusUpdate[0],
                                            Warnings,
                                            Runtime);
Ejemplo n.º 7
0
        AdminDown(IId AuthId,
                  IReceiveStatus IReceiveStatus,
                  IEnumerable <ChargingStationOperatorStatusUpdate> RejectedChargingStationOperatorStatusUpdates,
                  String Description             = null,
                  IEnumerable <Warning> Warnings = null,
                  TimeSpan?Runtime = null)

        => new PushChargingStationOperatorStatusResult(AuthId,
                                                       IReceiveStatus,
                                                       PushChargingStationOperatorStatusResultTypes.AdminDown,
                                                       Description,
                                                       RejectedChargingStationOperatorStatusUpdates,
                                                       Warnings,
                                                       Runtime);
        AdminDown(IId AuthId,
                  IReceiveStatus IReceiveStatus,
                  IEnumerable <RoamingNetworkStatusUpdate> RejectedRoamingNetworkStatusUpdates,
                  String Description             = null,
                  IEnumerable <Warning> Warnings = null,
                  TimeSpan?Runtime = null)

        => new PushRoamingNetworkStatusResult(AuthId,
                                              IReceiveStatus,
                                              PushRoamingNetworkStatusResultTypes.AdminDown,
                                              Description,
                                              RejectedRoamingNetworkStatusUpdates,
                                              Warnings,
                                              Runtime);
Ejemplo n.º 9
0
        /// <summary>
        /// Create a new PushEVSEStatus result.
        /// </summary>
        /// <param name="AuthId">The unqiue identification of the authenticator.</param>
        /// <param name="IReceiveStatus">An object implementing IReceiveStatus.</param>
        /// <param name="Result">The result of the operation.</param>
        /// <param name="Description">An optional description of the result code.</param>
        /// <param name="RejectedEVSEStatusUpdates">An enumeration of rejected EVSE status updates.</param>
        /// <param name="Warnings">Warnings or additional information.</param>
        /// <param name="Runtime">The runtime of the request.</param>
        internal PushEVSEStatusResult(IId AuthId,
                                      IReceiveStatus IReceiveStatus,
                                      PushEVSEStatusResultTypes Result,
                                      String Description = null,
                                      IEnumerable <EVSEStatusUpdate> RejectedEVSEStatusUpdates = null,
                                      IEnumerable <Warning> Warnings = null,
                                      TimeSpan?Runtime = null)

            : this(AuthId,
                   Result,
                   Description,
                   RejectedEVSEStatusUpdates,
                   Warnings,
                   Runtime)

        {
            this.IReceiveStatus = IReceiveStatus;
        }