2021-08-20 01:34:32 +02:00
|
|
|
#pragma once
|
|
|
|
|
2023-09-01 21:23:51 +03:00
|
|
|
#include "net/NetRequest.h"
|
2021-08-20 01:34:32 +02:00
|
|
|
|
2023-09-01 21:23:51 +03:00
|
|
|
class CapeChange : public Net::NetRequest {
|
2021-08-20 01:34:32 +02:00
|
|
|
Q_OBJECT
|
2023-08-02 18:35:35 +02:00
|
|
|
public:
|
2023-09-01 21:23:51 +03:00
|
|
|
using Ptr = shared_qobject_ptr<CapeChange>;
|
|
|
|
CapeChange(QString token, QString capeId);
|
|
|
|
virtual ~CapeChange() = default;
|
2021-08-20 01:34:32 +02:00
|
|
|
|
2023-09-01 21:23:51 +03:00
|
|
|
static CapeChange::Ptr make(QString token, QString capeId);
|
|
|
|
void init() override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual QNetworkReply* getReply(QNetworkRequest&) override;
|
2021-08-20 01:34:32 +02:00
|
|
|
|
2023-08-02 18:35:35 +02:00
|
|
|
private:
|
2021-08-20 01:34:32 +02:00
|
|
|
QString m_capeId;
|
2021-12-04 01:18:05 +01:00
|
|
|
QString m_token;
|
2021-08-20 01:34:32 +02:00
|
|
|
};
|