25 std::tuple<solanet::UUID, minhcast::LevelNumber> initial_node,
26 std::tuple<solanet::UUID, minhcast::LevelNumber> last_node, std::string content,
28 : topic_(std::move(topic)),
29 message_id_(std::move(message_id)),
30 initial_node_(std::move(initial_node)),
31 last_node_(std::move(last_node)),
32 content_(std::move(content)),
34 forwarding_limit_(std::move(forwarding_limit)),
37 std::string getTopic()
const {
return topic_; }
38 solanet::UUID getMessageID()
const {
return message_id_; }
39 solanet::UUID getInitialNodeUUID()
const {
return std::get<0>(initial_node_); }
40 solanet::UUID getLastNodeUUID()
const {
return std::get<0>(last_node_); }
41 minhcast::LevelNumber getInitialNodePos()
const {
return std::get<1>(initial_node_); }
42 minhcast::LevelNumber getLastNodePos()
const {
return std::get<1>(last_node_); }
43 std::string getContent()
const {
return content_; }
44 uint32_t getRound()
const {
return round_; }
45 bool isInnerForward()
const {
return inner_; }
46 ForwardingLimit getForwardingLimit()
const {
return forwarding_limit_; }
48 SERIALIZE(topic_, message_id_, initial_node_, last_node_, content_, round_, forwarding_limit_,
53 solanet::UUID message_id_;
54 std::tuple<solanet::UUID, minhcast::LevelNumber> initial_node_;
55 std::tuple<solanet::UUID, minhcast::LevelNumber> last_node_;