components/src/main/java/eu/internetofus/common/components/interaction_protocol_engine/ProtocolEvent.java
/**
   * Convert into a protocol message.
   *
   * @return the message with the information of the event.
   */
Convert into a protocol message.
@return the message with the information of the event.
Convert into a protocol message . @return the message with the information of the event .
public ProtocolMessage toProtocolMessage() {
    final var msg = new ProtocolMessage();
    msg.appId = this.appId;
    msg.communityId = this.communityId;
    msg.taskId = this.taskId;
    msg.transactionId = this.transactionId;
    msg.sender = new ProtocolAddress();
    msg.sender.component = Component.INTERACTION_PROTOCOL_ENGINE;
    msg.sender.userId = this.userId;
    msg.receiver = msg.sender;
    msg.particle = this.particle;
    msg.content = this.content;
    return msg;
  }
public ProtocolMessage toProtocolMessage ( ) { final var msg = new ProtocolMessage ( ) ; msg . appId = this . appId ; msg . communityId = this . communityId ; msg . taskId = this . taskId ; msg . transactionId = this . transactionId ; msg . sender = new ProtocolAddress ( ) ; msg . sender . component = Component . INTERACTION_PROTOCOL_ENGINE ; msg . sender . userId = this . userId ; msg . receiver = msg . sender ; msg . particle = this . particle ; msg . content = this . content ; return msg ; }
Convert into a protocol message.
Convert into a protocol message .