mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
38 lines
944 B
C++
38 lines
944 B
C++
#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<HederaTopic> 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<model::table::HederaTopic> getModel() { return _getModel<model::table::HederaTopic>(); }
|
|
|
|
|
|
protected:
|
|
HederaTopic(model::table::HederaTopic* dbModel);
|
|
|
|
};
|
|
|
|
#endif //__GRADIDO_LOGIN_SERVER_CONTROLLER_HEDERA_TOPIC_H
|