#pragma once


#include <WHISPER/Messages/Message.hpp>
#include <WHISPER/Messages/Protos/join.pb.h>
#include <string>
#include <loguru.hpp>

namespace WHISPER {

    class Join : public Message
    {             
        private:
            messages::join::Join joinMessage;
        public:
            std::uint32_t port;
            std::string sourceAddr;
            
            Join(std::string receivedMessage);

            Join(std::uint32_t parentID,std::uint32_t deviceID, SourceType src,std::uint32_t port, std::string addr);

    };
}