| Qore DiscordDataProvider Module Reference 2.0

Loading...
Searching...
No Matches
DiscordUserInfoDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
24
26 namespace DiscordDataProvider {
28 class DiscordUserInfoGetDataProvider : public DiscordDataProviderBase {
29
30 public:
32 static hash<DataProviderInfo> ProviderInfo = <DataProviderInfo>{
33 "name": "user-info",
34 "desc": "Discord API for retrieving the current user",
35 "type": "DiscordUserInfoGetDataProvider",
36 "constructor_options": DiscordDataProvider::ConstructorOptions,
37 "supports_request": True,
38 };
39
41 static hash<DataProviderSummaryInfo> ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
42 AbstractDataProvider::DataProviderSummaryInfoKeys
43 });
44
46 const RequestType = AbstractDataProviderTypeMap."nothing";
47
49 const ResponseType = new DiscordUserDataType();
50
52 constructor(*hash<auto> options);
53
54
56 constructor(DiscordRestClient::DiscordRestClient rest) ;
57
58
60 string getName();
61
62
64 *string getDesc();
65
66
68
73 protected:
74 auto doRequestImpl(auto req, *hash<auto> request_options);
75 public:
76
77
79
81 protected:
82 *DataProvider::AbstractDataProviderType getRequestTypeImpl();
83 public:
84
85
87
89 protected:
90 *DataProvider::AbstractDataProviderType getResponseTypeImpl();
91 public:
92
93
95 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
96
97};
98};
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