Loading...
Searching...
No Matches
DiscordDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace DiscordDataProvider {
const AppName = "Discord";
class DiscordDataProvider : public DiscordDataProviderBase {
public:
static hash<DataProviderInfo> ProviderInfo = <DataProviderInfo>{
"type": "DiscordDataProvider",
"supports_children": True,
"constructor_options": ConstructorOptions,
"children_can_support_apis": True,
};
const ConstructorOptions = ...;
protected:
static hash<string, code> dynamic_children;
const ChildMap = ...;
public:
constructor(*hash<auto> options);
constructor(DiscordRestClient rest) ;
constructor(DiscordRestConnection conn) ;
static registerChild(string name, code generator);
static DiscordRestClient::DiscordRestClient getRestConnection(*hash<auto> options);
string getName();
*string getDesc();
*list<hash<DataProvider::DataProviderSummaryInfo>> getChildProviderSummaryInfo();
protected:
*list<string> getChildProviderNamesImpl();
public:
protected:
*DataProvider::AbstractDataProvider getChildProviderImpl(string name);
public:
protected:
hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
public:
};
};
DiscordDataProvider::DiscordDataProviderBase
The Discord data provider base class.
Definition DiscordDataProviderBase.qc.dox.h:28
DiscordDataProvider::DiscordDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
DiscordDataProvider::DiscordDataProvider::constructor
constructor(DiscordRestClient rest)
Creates the object from a DiscordRestClient.
DiscordDataProvider::DiscordDataProvider::getStaticInfoImpl
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
DiscordDataProvider::DiscordDataProvider::getChildProviderSummaryInfo
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
DiscordDataProvider::DiscordDataProvider::getRestConnection
static DiscordRestClient::DiscordRestClient getRestConnection(*hash< auto > options)
Returns a DiscordRestClient connection from the options.
DiscordDataProvider::DiscordDataProvider::registerChild
static registerChild(string name, code generator)
Registers a child data provider.
DiscordDataProvider::DiscordDataProvider::getDesc
*string getDesc()
Returns the data provider description.
DiscordDataProvider::DiscordDataProvider::constructor
constructor(DiscordRestConnection conn)
Creates the object from a DiscordRestClient.
DiscordDataProvider::DiscordDataProvider::getName
string getName()
Returns the data provider name.
DiscordDataProvider::DiscordDataProvider::getChildProviderImpl
*DataProvider::AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or nothing if the given child is unknown.
DiscordDataProvider::DiscordDataProvider::getChildProviderNamesImpl
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
DiscordDataProvider
Qore DiscordDataProvider module definition.
Definition DiscordDataProvider.qc.dox.h:26
DiscordDataProvider::AppName
const AppName
Discord application name.
Definition DiscordDataProvider.qc.dox.h:28