ruanwenjun commented on a change in pull request #572:
URL: 
https://github.com/apache/incubator-eventmesh/pull/572#discussion_r737978900



##########
File path: 
eventmesh-protocol-plugin/eventmesh-protocol-cloudevents/src/main/java/org/apache/eventmesh/protocol/cloudevents/CloudEventProtocolAdaptor.java
##########
@@ -0,0 +1,24 @@
+package org.apache.eventmesh.protocol.cloudevents;
+
+import org.apache.eventmesh.protocol.api.ProtocolAdaptor;
+import org.apache.eventmesh.protocol.api.ProtocolType;
+
+import io.cloudevents.core.v1.CloudEventV1;
+
+public class CloudEventProtocolAdaptor implements 
ProtocolAdaptor<CloudEventV1> {
+
+    @Override
+    public CloudEventV1 toCloudEventV1(CloudEventV1 cloudEvent) {

Review comment:
       Done

##########
File path: 
eventmesh-protocol-plugin/eventmesh-protocol-cloudevents/src/main/java/org/apache/eventmesh/protocol/cloudevents/CloudEventProtocolAdaptor.java
##########
@@ -0,0 +1,24 @@
+package org.apache.eventmesh.protocol.cloudevents;
+
+import org.apache.eventmesh.protocol.api.ProtocolAdaptor;
+import org.apache.eventmesh.protocol.api.ProtocolType;
+
+import io.cloudevents.core.v1.CloudEventV1;
+
+public class CloudEventProtocolAdaptor implements 
ProtocolAdaptor<CloudEventV1> {
+
+    @Override
+    public CloudEventV1 toCloudEventV1(CloudEventV1 cloudEvent) {
+        return cloudEvent;
+    }
+
+    @Override
+    public CloudEventV1 fromCloudEventV1(CloudEventV1 cloudEvent) {

Review comment:
       Done




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to