Qore DiscordDataProvider Module Reference 2.0
Loading...
Searching...
No Matches
DiscordUserInfoDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26namespace DiscordDataProvider {
29
30public:
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
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
73protected:
74 auto doRequestImpl(auto req, *hash<auto> request_options);
75public:
76
77
79
81protected:
82 *DataProvider::AbstractDataProviderType getRequestTypeImpl();
83public:
84
85
87
89protected:
90 *DataProvider::AbstractDataProviderType getResponseTypeImpl();
91public:
92
93
95 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
96
97};
98};
The Discord data provider base class.
Definition DiscordDataProviderBase.qc.dox.h:28
*DiscordRestClient rest
The REST client object for API calls.
Definition DiscordDataProviderBase.qc.dox.h:43
const ConstructorOptions
Constructor options.
Definition DiscordDataProvider.qc.dox.h:43
Data provider API for retrieving a specific user.
Definition DiscordUserInfoDataProvider.qc.dox.h:28
string getName()
Returns the data provider name.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
static hash< DataProviderInfo > ProviderInfo
Provider info.
Definition DiscordUserInfoDataProvider.qc.dox.h:32
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
const RequestType
Request type.
Definition DiscordUserInfoDataProvider.qc.dox.h:46
constructor(*hash< auto > options)
Creates the object from constructor options.
const ResponseType
Response type.
Definition DiscordUserInfoDataProvider.qc.dox.h:49
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
static hash< DataProviderSummaryInfo > ProviderSummaryInfo
Provider summary info.
Definition DiscordUserInfoDataProvider.qc.dox.h:41
constructor(DiscordRestClient::DiscordRestClient rest)
Creates the object from a REST connection.
*string getDesc()
Returns the data provider description.
Qore DiscordDataProvider module definition.
Definition DiscordDataProvider.qc.dox.h:26
const DiscordUserDataType
Discord user data type constant.
Definition DiscordUserDataType.qc.dox.h:41