Snippets

OICP 2.1 Authorize Remote Start | Java

Updated by Julius Poessnecker

File (0) OICP Added

  • Ignore whitespace
  • Hide word diff
+The service descrciption can be found in the OICP 2.1.
+
+Section:
+3.1.3 eRoamingAuthorizeRemoteStart
+
+To download the latest OICP Version, please visit our website:
+https://www.hubject.com/downloads/
Updated by Gregor Schermuly

File (1) Authorize Remote Start | Java.java Added

  • Ignore whitespace
  • Hide word diff
+/**
+ * Initiate a remote start of the given charging session at the given EVSE
+ * and for the given Provider/eMAId.
+ *
+ * @param Timestamp The timestamp of the request.
+ * @param RoamingNetworkId The unique identification for the roaming network.
+ * @param SessionId The unique identification for this charging session.
+ * @param PartnerSessionId The unique identification for this charging session on the partner side.
+ * @param ProviderId The unique identification of the e-mobility service provider.
+ * @param eMAId The unique identification of the e-mobility account.
+ * @param EVSEId The unique identification of an EVSE.
+ * @param ChargingProductId The unique identification of the choosen charging product at the given EVSE.
+ * @return A remote start result object.
+ */
+public RemoteStartResult Invoke(Instant             Timestamp,
+                                RoamingNetwork_Id   RoamingNetworkId,
+                                ChargingSession_Id  SessionId,
+                                ChargingSession_Id  PartnerSessionId,
+                                EVSP_Id             ProviderId,
+                                eMA_Id              eMAId,
+                                EVSE_Id             EVSEId,
+                                ChargingProduct_Id  ChargingProductId);
+
+
+/**
+ * Register an event callback for incoming remote start requests.
+ *
+ * @param RemoteStartHandler an implementation of the remote start functional interface.
+ */
+public void OnRemoteStart(IRemoteStart RemoteStartHandler)
+{ ... }

File (2) Example.java Added

  • Ignore whitespace
  • Hide word diff
+CPOServer HubjectCPOServer = new CPOServer(RoamingNetwork_Id.Parse("Playground"));
+
+HubjectCPOServer.OnRemoteStart((Timestamp,
+                                RoamingNetworkId,
+                                SessionId,
+                                PartnerSessionId,
+                                ProviderId,
+                                eMAId,
+                                EVSEId,
+                                ChargingProductId) -> {
+
+    System.out.println("[" + Timestamp.                            toString() +
+                          "] RemoteStart in '" + RoamingNetworkId. toString() +
+                          "' from '"           + ProviderId.       toString() +
+                          "' for '"            + eMAId.            toString() +
+                          "' at '"             + EVSEId.           toString() +
+                          "' / '"              + ChargingProductId.toString() +
+                          "'");
+
+    return RemoteStartResult.Success;
+
+});

File Authorize Remote Start | Java.java Deleted

  • Ignore whitespace
  • Hide word diff
-/**
- * Initiate a remote start of the given charging session at the given EVSE
- * and for the given Provider/eMAId.
- *
- * @param Timestamp The timestamp of the request.
- * @param RoamingNetworkId The unique identification for the roaming network.
- * @param SessionId The unique identification for this charging session.
- * @param PartnerSessionId The unique identification for this charging session on the partner side.
- * @param ProviderId The unique identification of the e-mobility service provider.
- * @param eMAId The unique identification of the e-mobility account.
- * @param EVSEId The unique identification of an EVSE.
- * @param ChargingProductId The unique identification of the choosen charging product at the given EVSE.
- * @return A remote start result object.
- */
-public RemoteStartResult Invoke(Instant             Timestamp,
-                                RoamingNetwork_Id   RoamingNetworkId,
-                                ChargingSession_Id  SessionId,
-                                ChargingSession_Id  PartnerSessionId,
-                                EVSP_Id             ProviderId,
-                                eMA_Id              eMAId,
-                                EVSE_Id             EVSEId,
-                                ChargingProduct_Id  ChargingProductId);
-
-
-/**
- * Register an event callback for incoming remote start requests.
- *
- * @param RemoteStartHandler an implementation of the remote start functional interface.
- */
-public void OnRemoteStart(IRemoteStart RemoteStartHandler)
-{ ... }

File Example.java Deleted

  • Ignore whitespace
  • Hide word diff
-CPOServer HubjectCPOServer = new CPOServer(RoamingNetwork_Id.Parse("Playground"));
-
-HubjectCPOServer.OnRemoteStart((Timestamp,
-                                RoamingNetworkId,
-                                SessionId,
-                                PartnerSessionId,
-                                ProviderId,
-                                eMAId,
-                                EVSEId,
-                                ChargingProductId) -> {
-
-    System.out.println("[" + Timestamp.                            toString() +
-                          "] RemoteStart in '" + RoamingNetworkId. toString() +
-                          "' from '"           + ProviderId.       toString() +
-                          "' for '"            + eMAId.            toString() +
-                          "' at '"             + EVSEId.           toString() +
-                          "' / '"              + ChargingProductId.toString() +
-                          "'");
-
-    return RemoteStartResult.Success;
-
-});
Created by Gregor Schermuly

File Authorize Remote Start | Java.java Added

  • Ignore whitespace
  • Hide word diff
+/**
+ * Initiate a remote start of the given charging session at the given EVSE
+ * and for the given Provider/eMAId.
+ *
+ * @param Timestamp The timestamp of the request.
+ * @param RoamingNetworkId The unique identification for the roaming network.
+ * @param SessionId The unique identification for this charging session.
+ * @param PartnerSessionId The unique identification for this charging session on the partner side.
+ * @param ProviderId The unique identification of the e-mobility service provider.
+ * @param eMAId The unique identification of the e-mobility account.
+ * @param EVSEId The unique identification of an EVSE.
+ * @param ChargingProductId The unique identification of the choosen charging product at the given EVSE.
+ * @return A remote start result object.
+ */
+public RemoteStartResult Invoke(Instant             Timestamp,
+                                RoamingNetwork_Id   RoamingNetworkId,
+                                ChargingSession_Id  SessionId,
+                                ChargingSession_Id  PartnerSessionId,
+                                EVSP_Id             ProviderId,
+                                eMA_Id              eMAId,
+                                EVSE_Id             EVSEId,
+                                ChargingProduct_Id  ChargingProductId);
+
+
+/**
+ * Register an event callback for incoming remote start requests.
+ *
+ * @param RemoteStartHandler an implementation of the remote start functional interface.
+ */
+public void OnRemoteStart(IRemoteStart RemoteStartHandler)
+{ ... }

File Example.java Added

  • Ignore whitespace
  • Hide word diff
+CPOServer HubjectCPOServer = new CPOServer(RoamingNetwork_Id.Parse("Playground"));
+
+HubjectCPOServer.OnRemoteStart((Timestamp,
+                                RoamingNetworkId,
+                                SessionId,
+                                PartnerSessionId,
+                                ProviderId,
+                                eMAId,
+                                EVSEId,
+                                ChargingProductId) -> {
+
+    System.out.println("[" + Timestamp.                            toString() +
+                          "] RemoteStart in '" + RoamingNetworkId. toString() +
+                          "' from '"           + ProviderId.       toString() +
+                          "' for '"            + eMAId.            toString() +
+                          "' at '"             + EVSEId.           toString() +
+                          "' / '"              + ChargingProductId.toString() +
+                          "'");
+
+    return RemoteStartResult.Success;
+
+});
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.