$darkmode
Qore GoogleDataProvider Module Reference 1.0
GoogleCalendarEventsGetDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
26 namespace GoogleDataProvider {
28 
31 
32 public:
34  const ProviderInfo = <DataProviderInfo>{
35  "name": "get",
36  "desc": "Google calendar events get API data provider",
37  "type": "GoogleCalendarEventsGetDataProvider",
38  "constructor_options": GoogleDataProvider::ConstructorOptions + {
39  "id": <DataProviderOptionInfo>{
40  "type": AbstractDataProviderTypeMap."string",
41  "desc": "The calendar ID",
42  },
43  },
44  "supports_request": True,
45  };
46 
48  const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
49  AbstractDataProvider::DataProviderSummaryInfoKeys
50  });
51 
54 
57 
58 protected:
60  string id;
61 
63  *hash<auto> cal;
64 
65 public:
66 
68  constructor(*hash<auto> options);
69 
70 
72  constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash<auto> cal) ;
73 
74 
76  string getName();
77 
78 
80  *string getDesc();
81 
82 
84 
89 protected:
90  auto doRequestImpl(auto req, *hash<auto> request_options);
91 public:
92 
93 
95 
97 protected:
98  *DataProvider::AbstractDataProviderType getRequestTypeImpl();
99 public:
100 
101 
103 
105 protected:
106  *DataProvider::AbstractDataProviderType getResponseTypeImpl();
107 public:
108 
109 
111  hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
112 
113 };
114 
116 class GoogleCalendarEventsGetRequestType : public DataProvider::HashDataType {
117 
118 public:
119 protected:
121  const Fields = {
122  // query parameters
123  "id": {
124  "type": AbstractDataProviderTypeMap."string",
125  "desc": "The event ID",
126  },
127  "maxAttendees": {
128  "type": AbstractDataProviderTypeMap."*int",
129  "desc": "The maximum number of attendees to include in the response. If there are more than the "
130  "specified number of attendees, only the participant is returned",
131  },
132  "timeZone": {
133  "type": AbstractDataProviderTypeMap."*string",
134  "desc": "Time zone used in the response. The default is the time zone of the calendar",
135  },
136  };
137 
138 public:
139 
141  constructor(string name = 'GoogleCalendarEventsGetRequestType') ;
142 
143 };
144 };
Google calendar event data type.
Definition: GoogleCalendarEventsListDataProvider.qc.dox.h:397
The Google calendar event get API data provider.
Definition: GoogleCalendarEventsGetDataProvider.qc.dox.h:30
const ResponseType
Response type.
Definition: GoogleCalendarEventsGetDataProvider.qc.dox.h:56
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
string getName()
Returns the data provider name.
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
constructor(*hash< auto > options)
Creates the object from constructor options.
const ProviderInfo
Provider info.
Definition: GoogleCalendarEventsGetDataProvider.qc.dox.h:34
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
const RequestType
Request type.
Definition: GoogleCalendarEventsGetDataProvider.qc.dox.h:53
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
*hash< auto > cal
The calendar's metadata.
Definition: GoogleCalendarEventsGetDataProvider.qc.dox.h:63
constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash< auto > cal)
Creates the object from a REST connection.
string id
The calendar's ID.
Definition: GoogleCalendarEventsGetDataProvider.qc.dox.h:60
*string getDesc()
Returns the data provider description.
const ProviderSummaryInfo
Provider summary info.
Definition: GoogleCalendarEventsGetDataProvider.qc.dox.h:48
Google calendar event get request data type.
Definition: GoogleCalendarEventsGetDataProvider.qc.dox.h:116
constructor(string name='GoogleCalendarEventsGetRequestType')
Creates the object.
const Fields
Field descriptions.
Definition: GoogleCalendarEventsGetDataProvider.qc.dox.h:121
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