CHG: changed the base message class to only use sender uuid as id

This commit is contained in:
Henry Winkel
2023-07-05 17:25:17 +02:00
parent 828d038d5f
commit 3a63dec02f
5 changed files with 266 additions and 63 deletions

View File

@@ -25,6 +25,20 @@ namespace WHISPER {
}
}
Message::Message(std::string senderUUID, MsgTopics topic, MsgType Type,SourceType src):
senderUUID_(senderUUID),topic_(topic),sourceType_(src),msgType_(Type)
{
msg = messages::header::Message();
if(msg.IsInitialized())
{
msg.set_topic(topic);
msg.set_sourcetype(sourceType_);
msg.set_msgtype(msgType_);
msg.set_senderuuid(senderUUID_);
}
}