public static XElement StatusNotificationRequestXML(String ChargeBoxIdentity,
                                                     UInt16 ConnectorId,
                                                     ChargePointStatus Status,
                                                     ChargePointErrorCode ErrorCode,
                                                     String Info            = null,
                                                     DateTime?Timestamp     = null,
                                                     String VendorId        = null,
                                                     String VendorErrorCode = null)
 {
     return(SOAP.Encapsulation(SOAPHeaders: new XElement[] { new XElement(OCPPNS.OCPPv1_5_CS + "chargeBoxIdentity", ChargeBoxIdentity) },
                               SOAPBody:   new XElement(OCPPNS.OCPPv1_5_CS + "StatusNotificationRequest",
                                                        new XElement(OCPPNS.OCPPv1_5_CS + "connectorId", ConnectorId),
                                                        new XElement(OCPPNS.OCPPv1_5_CS + "status", Status),
                                                        new XElement(OCPPNS.OCPPv1_5_CS + "errorCode", ErrorCode),
                                                        new XElement(OCPPNS.OCPPv1_5_CS + "info", Info),
                                                        new XElement(OCPPNS.OCPPv1_5_CS + "timestamp", Timestamp),
                                                        new XElement(OCPPNS.OCPPv1_5_CS + "vendorId", VendorId),
                                                        new XElement(OCPPNS.OCPPv1_5_CS + "vendorErrorCode", VendorErrorCode)
                                                        )));
 }
 /// <remarks/>
 public void StatusNotificationAsync(int connectorId, ChargePointStatus status, ChargePointErrorCode errorCode, string info, System.DateTime timestamp, bool timestampSpecified, string vendorId, string vendorErrorCode, object userState)
 {
     if ((this.StatusNotificationOperationCompleted == null)) {
         this.StatusNotificationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStatusNotificationOperationCompleted);
     }
     this.InvokeAsync("StatusNotification", new object[] {
                 connectorId,
                 status,
                 errorCode,
                 info,
                 timestamp,
                 timestampSpecified,
                 vendorId,
                 vendorErrorCode}, this.StatusNotificationOperationCompleted, userState);
 }
 /// <remarks/>
 public void StatusNotificationAsync(int connectorId, ChargePointStatus status, ChargePointErrorCode errorCode, string info, System.DateTime timestamp, bool timestampSpecified, string vendorId, string vendorErrorCode)
 {
     this.StatusNotificationAsync(connectorId, status, errorCode, info, timestamp, timestampSpecified, vendorId, vendorErrorCode, null);
 }
 public void StatusNotification(int connectorId, ChargePointStatus status, ChargePointErrorCode errorCode, string info, System.DateTime timestamp, [System.Xml.Serialization.XmlIgnoreAttribute()] bool timestampSpecified, string vendorId, string vendorErrorCode)
 {
     this.Invoke("StatusNotification", new object[] {
                 connectorId,
                 status,
                 errorCode,
                 info,
                 timestamp,
                 timestampSpecified,
                 vendorId,
                 vendorErrorCode});
 }
 /// <remarks/>
 public System.IAsyncResult BeginStatusNotification(int connectorId, ChargePointStatus status, ChargePointErrorCode errorCode, string info, System.DateTime timestamp, bool timestampSpecified, string vendorId, string vendorErrorCode, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("StatusNotification", new object[] {
                 connectorId,
                 status,
                 errorCode,
                 info,
                 timestamp,
                 timestampSpecified,
                 vendorId,
                 vendorErrorCode}, callback, asyncState);
 }