Esempio n. 1
0
        public static String AsText(this AvailabilityTypes AvailabilityType)
        {
            switch (AvailabilityType)
            {
            case AvailabilityTypes.Inoperative:
                return("Inoperative");

            case AvailabilityTypes.Operative:
                return("Operative");


            default:
                return("unknown");
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Create an OCPP ChangeAvailabilityRequest XML/SOAP request.
 /// </summary>
 /// <param name="ConnectorId">The identification of the connector for which its availability should be changed. Id '0' (zero) is used if the availability of the entire charge point and all its connectors should be changed.</param>
 /// <param name="Type">The new availability of the charge point or charge point connector.</param>
 public ChangeAvailabilityRequest(Connector_Id ConnectorId,
                                  AvailabilityTypes Type)
 {
     this.ConnectorId = ConnectorId;
     this.Type        = Type;
 }