- jsonData, _ := json.Marshal(messageInfo)
-
- return string(jsonData)
+func (mi MessageInfo) String() string {
+ return fmt.Sprintf("message timestamp: %d | message type: %d | meid: %s | payload: %x | transaction id: %s",
+ mi.MessageTimestamp, mi.MessageType, mi.Meid, mi.Payload, mi.TransactionId)