$darkmode
Qore GoogleDataProvider Module Reference 1.0
GoogleCalendarGetDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
26 namespace GoogleDataProvider {
29 
30 public:
32  const ProviderInfo = <DataProviderInfo>{
33  "name": "get",
34  "desc": "Google calendar API for retrieving a specific calendar",
35  "type": "GoogleCalendarGetDataProvider",
36  "constructor_options": GoogleDataProvider::ConstructorOptions + {
37  "id": <DataProviderOptionInfo>{
38  "type": AbstractDataProviderTypeMap."string",
39  "desc": "The calendar ID",
40  },
41  },
42  "supports_request": True,
43  };
44 
46  const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
47  AbstractDataProvider::DataProviderSummaryInfoKeys
48  });
49 
51  const RequestType = AbstractDataProviderTypeMap."nothing";
52 
55 
56 protected:
58  string id;
59 
61  *hash<auto> cal;
62 
63 public:
64 
66  constructor(*hash<auto> options);
67 
68 
70  constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash<auto> cal) ;
71 
72 
74  string getName();
75 
76 
78  *string getDesc();
79 
80 
82 
87 protected:
88  auto doRequestImpl(auto req, *hash<auto> request_options);
89 public:
90 
91 
93 
95 protected:
96  *DataProvider::AbstractDataProviderType getRequestTypeImpl();
97 public:
98 
99 
101 
103 protected:
104  *DataProvider::AbstractDataProviderType getResponseTypeImpl();
105 public:
106 
107 
109  hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
110 
111 };
112 };
Data provider API for retrieving a specific calendar.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:28
const ResponseType
Response type.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:54
string id
The calendar's ID.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:58
string getName()
Returns the data provider name.
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
const ProviderSummaryInfo
Provider summary info.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:46
const ProviderInfo
Provider info.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:32
const RequestType
Request type.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:51
constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash< auto > cal)
Creates the object from a REST connection.
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
*hash< auto > cal
The calendar's metadata.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:61
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
constructor(*hash< auto > options)
Creates the object from constructor options.
*string getDesc()
Returns the data provider description.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
The Google data provider base class.
Definition: GoogleDataProviderBase.qc.dox.h:28
*GoogleRestClient::GoogleRestClient rest
The REST client object for API calls.
Definition: GoogleDataProviderBase.qc.dox.h:33
const ConstructorOptions
Constructor options.
Definition: GoogleDataProvider.qc.dox.h:40
const True
Qore GoogleDataProvider module definition.
Definition: GoogleCalendarBaseDataProvider.qc.dox.h:26
const GoogleCalendarType
Google calendar type constant.
Definition: GoogleCalendarType.qc.dox.h:28