#ifndef __GRADIDO_LOGIN_SERVER_CONTROLLER_HEDERA_TOPIC_H #define __GRADIDO_LOGIN_SERVER_CONTROLLER_HEDERA_TOPIC_H /*! * * \author: Dario Rekowski * * \date: 03.09.2020 * * \brief: Class for Hedera Topic, connct db table with hedera object * */ #include "TableControllerBase.h" #include "../model/table/HederaTopic.h" namespace controller { class HederaTopic : public TableControllerBase { public: ~HederaTopic(); static Poco::AutoPtr create(const std::string& name, int autoRenewAccountId, int autoRenewPeriod, int groupId); //! \brief hedera call to create a hedera topic Poco::UInt64 hederaCreateTopic(); inline bool deleteFromDB() { return mDBModel->deleteFromDB(); } inline Poco::AutoPtr getModel() { return _getModel(); } protected: HederaTopic(model::table::HederaTopic* dbModel); }; #endif //__GRADIDO_LOGIN_SERVER_CONTROLLER_HEDERA_TOPIC_H