Skip to content

Commit

Permalink
feat(file-output): add Message as an extended method for V2xMessageRe…
Browse files Browse the repository at this point in the history
…ception
  • Loading branch information
kschrab committed Aug 8, 2024
1 parent bad6f83 commit 1318d30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<entry>MessageId</entry>
<entry>ReceiverName</entry>
<entry>ReceiverInformation.ReceiveSignalStrength</entry>
<entry>Payload.EffectiveLength</entry>
<entry>Message.Payload.EffectiveLength</entry>
</entries>
</subscription>
<subscription id="V2xMessageTransmission">
Expand All @@ -67,7 +67,7 @@
<entry>Message.Routing.Destination.Type</entry>
<entry>Message.Routing.Destination.Address.IPv4Address</entry>
<entry>Message.Routing.Destination.AdhocChannelId</entry>
<entry>Payload.EffectiveLength</entry>
<entry>Message.Payload.EffectiveLength</entry>
</entries>
</subscription>
<subscription id="VehicleRegistration" enabled="true">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ static public Object getType(V2xMessageReception interaction) {
return message.getSimpleClassName();
}

static public Object getPayload(V2xMessageReception interaction) {
return Objects.requireNonNull(V2X_MESSAGES.get(interaction.getMessageId())).getPayload();
static public V2xMessage getMessage(V2xMessageReception interaction) {
return Objects.requireNonNull(V2X_MESSAGES.get(interaction.getMessageId()));
}

static public Object getType(V2xMessageTransmission interaction) {
Expand Down

0 comments on commit 1318d30

Please sign in to comment.