Loading...
Searching...
No Matches
DiscordGuildsDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace DiscordDataProvider {
class DiscordGuildsDataProvider : public DiscordDataProviderBase {
public:
static hash<DataProviderInfo> ProviderInfo = <DataProviderInfo>{
"name": "guilds",
"desc": "Discord guilds data provider; parent provider for REST APIs related to specific Discord "
"guilds",
"type": "DiscordGuildsDataProvider",
"constructor_options": DiscordDataProvider::ConstructorOptions,
"supports_children": True,
"children_can_support_apis": True,
"children_identical": True,
};
static hash<DataProviderSummaryInfo> ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
AbstractDataProvider::DataProviderSummaryInfoKeys
});
protected:
hash<string, hash<auto>> guilds;
Qore::Thread::Mutex lck();
public:
constructor(*hash<auto> options);
constructor(DiscordRestClient::DiscordRestClient rest) ;
string getName();
*string getDesc();
*list<hash<DataProvider::DataProviderSummaryInfo>> getChildProviderSummaryInfo();
protected:
*list<string> getChildProviderNamesImpl();
public:
protected:
*DiscordDataProviderBase getChildProviderImpl(string name);
public:
protected:
hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
public:
protected:
hash<string, hash<auto>> getAllGuilds();
public:
};
};
DiscordDataProvider::DiscordDataProviderBase
The Discord data provider base class.
Definition DiscordDataProviderBase.qc.dox.h:28
DiscordDataProvider::DiscordDataProviderBase::rest
*DiscordRestClient rest
The REST client object for API calls.
Definition DiscordDataProviderBase.qc.dox.h:43
DiscordDataProvider::DiscordDataProvider::ConstructorOptions
const ConstructorOptions
Constructor options.
Definition DiscordDataProvider.qc.dox.h:43
DiscordDataProvider::DiscordGuildsDataProvider
The parent class for REST APIs related to specific Discord guilds.
Definition DiscordGuildsDataProvider.qc.dox.h:28
DiscordDataProvider::DiscordGuildsDataProvider::getChildProviderSummaryInfo
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
DiscordDataProvider::DiscordGuildsDataProvider::lck
Qore::Thread::Mutex lck()
Metadata mutex.
DiscordDataProvider::DiscordGuildsDataProvider::ProviderInfo
static hash< DataProviderInfo > ProviderInfo
Provider info.
Definition DiscordGuildsDataProvider.qc.dox.h:32
DiscordDataProvider::DiscordGuildsDataProvider::guilds
hash< string, hash< auto > > guilds
Guild list.
Definition DiscordGuildsDataProvider.qc.dox.h:50
DiscordDataProvider::DiscordGuildsDataProvider::getName
string getName()
Returns the data provider name.
DiscordDataProvider::DiscordGuildsDataProvider::getDesc
*string getDesc()
Returns the data provider description.
DiscordDataProvider::DiscordGuildsDataProvider::ProviderSummaryInfo
static hash< DataProviderSummaryInfo > ProviderSummaryInfo
Provider summary info.
Definition DiscordGuildsDataProvider.qc.dox.h:44
DiscordDataProvider::DiscordGuildsDataProvider::constructor
constructor(DiscordRestClient::DiscordRestClient rest)
Creates the object from a REST connection.
DiscordDataProvider::DiscordGuildsDataProvider::getAllGuilds
hash< string, hash< auto > > getAllGuilds()
Returns access info for all tables.
DiscordDataProvider::DiscordGuildsDataProvider::getChildProviderNamesImpl
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
DiscordDataProvider::DiscordGuildsDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
DiscordDataProvider::DiscordGuildsDataProvider::getChildProviderImpl
*DiscordDataProviderBase getChildProviderImpl(string name)
Returns the given child provider or nothing if the given child is unknown.
DiscordDataProvider::DiscordGuildsDataProvider::getStaticInfoImpl
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
DiscordDataProvider
Qore DiscordDataProvider module definition.
Definition DiscordDataProvider.qc.dox.h:26