Loading...
Searching...
No Matches
DiscordUserInfoDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace DiscordDataProvider {
class DiscordUserInfoGetDataProvider : public DiscordDataProviderBase {
public:
static hash<DataProviderInfo> ProviderInfo = <DataProviderInfo>{
"name": "user-info",
"desc": "Discord API for retrieving the current user",
"type": "DiscordUserInfoGetDataProvider",
"constructor_options": DiscordDataProvider::ConstructorOptions,
"supports_request": True,
};
static hash<DataProviderSummaryInfo> ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
AbstractDataProvider::DataProviderSummaryInfoKeys
});
const RequestType = AbstractDataProviderTypeMap."nothing";
const ResponseType = new DiscordUserDataType();
constructor(*hash<auto> options);
constructor(DiscordRestClient::DiscordRestClient rest) ;
string getName();
*string getDesc();
protected:
auto doRequestImpl(auto req, *hash<auto> request_options);
public:
protected:
*DataProvider::AbstractDataProviderType getRequestTypeImpl();
public:
protected:
*DataProvider::AbstractDataProviderType getResponseTypeImpl();
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::DiscordUserInfoGetDataProvider
Data provider API for retrieving a specific user.
Definition DiscordUserInfoDataProvider.qc.dox.h:28
DiscordDataProvider::DiscordUserInfoGetDataProvider::getName
string getName()
Returns the data provider name.
DiscordDataProvider::DiscordUserInfoGetDataProvider::getStaticInfoImpl
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
DiscordDataProvider::DiscordUserInfoGetDataProvider::ProviderInfo
static hash< DataProviderInfo > ProviderInfo
Provider info.
Definition DiscordUserInfoDataProvider.qc.dox.h:32
DiscordDataProvider::DiscordUserInfoGetDataProvider::doRequestImpl
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
DiscordDataProvider::DiscordUserInfoGetDataProvider::RequestType
const RequestType
Request type.
Definition DiscordUserInfoDataProvider.qc.dox.h:46
DiscordDataProvider::DiscordUserInfoGetDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
DiscordDataProvider::DiscordUserInfoGetDataProvider::ResponseType
const ResponseType
Response type.
Definition DiscordUserInfoDataProvider.qc.dox.h:49
DiscordDataProvider::DiscordUserInfoGetDataProvider::getRequestTypeImpl
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
DiscordDataProvider::DiscordUserInfoGetDataProvider::getResponseTypeImpl
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
DiscordDataProvider::DiscordUserInfoGetDataProvider::ProviderSummaryInfo
static hash< DataProviderSummaryInfo > ProviderSummaryInfo
Provider summary info.
Definition DiscordUserInfoDataProvider.qc.dox.h:41
DiscordDataProvider::DiscordUserInfoGetDataProvider::constructor
constructor(DiscordRestClient::DiscordRestClient rest)
Creates the object from a REST connection.
DiscordDataProvider::DiscordUserInfoGetDataProvider::getDesc
*string getDesc()
Returns the data provider description.
DiscordDataProvider
Qore DiscordDataProvider module definition.
Definition DiscordDataProvider.qc.dox.h:26
DiscordDataProvider::DiscordUserDataType
const DiscordUserDataType
Discord user data type constant.
Definition DiscordUserDataType.qc.dox.h:41