Loading...
Searching...
No Matches
DiscordGuildDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace DiscordDataProvider {
class DiscordGuildDataProvider : public DiscordDataProviderBase {
public:
static hash<DataProviderInfo> ProviderInfo = <DataProviderInfo>{
"name": "guild",
"desc": "Discord guild data provider; parent provider for APIs related to guilds",
"type": "DiscordGuildDataProvider",
"constructor_options": DiscordDataProvider::ConstructorOptions + {
"id": <DataProviderOptionInfo>{
"display_name": "Server ID",
"short_desc": "The ID of the server or guild",
"type": AbstractDataProviderTypeMap."string",
"desc": "The ID of the server or guild",
},
},
"supports_children": True,
"children_can_support_apis": True,
};
static hash<DataProviderSummaryInfo> ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
AbstractDataProvider::DataProviderSummaryInfoKeys
});
protected:
hash<auto> guild;
*hash<auto> cal;
const DefaultChildMap = ...;
static hash<string, Reflection::Class> childMap = DefaultChildMap;
public:
constructor(*hash<auto> options);
constructor(DiscordRestClient::DiscordRestClient rest, hash<auto> guild) ;
string getName();
*string getDesc();
*list<hash<DataProvider::DataProviderSummaryInfo>> getChildProviderSummaryInfo();
static registerChild(string pathname, Reflection::Class cls);
protected:
static deregisterChild(string pathname);
public:
protected:
*list<string> getChildProviderNamesImpl();
public:
protected:
*DiscordDataProviderBase getChildProviderImpl(string name);
public:
hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
};
};
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::DiscordGuildDataProvider
The parent class for Discord guild REST APIs.
Definition DiscordGuildDataProvider.qc.dox.h:28
DiscordDataProvider::DiscordGuildDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
DiscordDataProvider::DiscordGuildDataProvider::getDesc
*string getDesc()
Returns the data provider description.
DiscordDataProvider::DiscordGuildDataProvider::getStaticInfoImpl
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
DiscordDataProvider::DiscordGuildDataProvider::ProviderSummaryInfo
static hash< DataProviderSummaryInfo > ProviderSummaryInfo
Provider summary info.
Definition DiscordGuildDataProvider.qc.dox.h:49
DiscordDataProvider::DiscordGuildDataProvider::cal
*hash< auto > cal
The guild's metadata.
Definition DiscordGuildDataProvider.qc.dox.h:58
DiscordDataProvider::DiscordGuildDataProvider::ProviderInfo
static hash< DataProviderInfo > ProviderInfo
Provider info.
Definition DiscordGuildDataProvider.qc.dox.h:32
DiscordDataProvider::DiscordGuildDataProvider::getChildProviderImpl
*DiscordDataProviderBase getChildProviderImpl(string name)
Returns the given child provider or nothing if the given child is unknown.
DiscordDataProvider::DiscordGuildDataProvider::deregisterChild
static deregisterChild(string pathname)
Deregister the named child data provider.
DiscordDataProvider::DiscordGuildDataProvider::registerChild
static registerChild(string pathname, Reflection::Class cls)
Register a new child data provider for Discord guilds.
DiscordDataProvider::DiscordGuildDataProvider::getChildProviderNamesImpl
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
DiscordDataProvider::DiscordGuildDataProvider::getName
string getName()
Returns the data provider name.
DiscordDataProvider::DiscordGuildDataProvider::constructor
constructor(DiscordRestClient::DiscordRestClient rest, hash< auto > guild)
Creates the object from a REST connection.
DiscordDataProvider::DiscordGuildDataProvider::getChildProviderSummaryInfo
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
DiscordDataProvider::DiscordGuildDataProvider::guild
hash< auto > guild
The guild info.
Definition DiscordGuildDataProvider.qc.dox.h:55
DiscordDataProvider
Qore DiscordDataProvider module definition.
Definition DiscordDataProvider.qc.dox.h:26