14 #include "qalphacloud.h"
21 class ApiRequestPrivate;
43 static constexpr QLatin1String EssList{
"getEssList"};
44 static constexpr QLatin1String
LastPowerData{
"getLastPowerData"};
45 static constexpr QLatin1String OneDayPowerBySn{
"getOneDayPowerBySn"};
46 static constexpr QLatin1String OneDateEnergyBySn{
"getOneDateEnergyBySn"};
70 QString endPoint()
const;
77 void setEndPoint(
const QString &endPoint);
82 QString sysSn()
const;
88 void setSysSn(
const QString &sysSn);
93 QDate queryDate()
const;
99 void setQueryDate(
const QDate &date);
104 QUrlQuery query()
const;
111 void setQuery(
const QUrlQuery &query);
116 bool autoDelete()
const;
122 void setAutoDelete(
bool autoDelete);
133 QString errorString()
const;
141 QJsonValue data()
const;
148 Q_INVOKABLE
bool send();
153 Q_INVOKABLE
void abort();
182 std::unique_ptr<ApiRequestPrivate>
const d;
API request job.
Definition: apirequest.h:35
void finished()
Emitted when the request finished.
void errorOccurred()
Emitted when an error occurred.
void result()
Emitted when an API result received.
~ApiRequest() override
Destroys the API request.
API Connection.
Definition: connector.h:39
Live Power Data.
Definition: lastpowerdata.h:30
Utility namespace.
Definition: apirequest.cpp:24
ErrorCode
Error codes.
Definition: qalphacloud.h:45
The API endpoints.
Definition: apirequest.h:42