Skip to content

Commit

Permalink
fix: trainIdentification order
Browse files Browse the repository at this point in the history
  • Loading branch information
mghilardelli committed Oct 24, 2024
1 parent a977808 commit ccf82f4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions das_client/lib/model/sfera/message_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ class MessageHeader extends SferaXmlElement {
messageHeader.attributes["timestamp"] = timestamp;
messageHeader.attributes["sourceDevice"] = sourceDevice;
messageHeader.attributes["destinationDevice"] = destinationDevice;
messageHeader.children.add(SferaXmlElement(type: "Sender", value: sender));
messageHeader.children.add(SferaXmlElement(type: "Recipient", value: recipient));

if (trainIdentification != null) {
messageHeader.children.add(trainIdentification);
}

messageHeader.children.add(SferaXmlElement(type: "Sender", value: sender));
messageHeader.children.add(SferaXmlElement(type: "Recipient", value: recipient));
return messageHeader;
}

Expand Down

0 comments on commit ccf82f4

Please sign in to comment.