qTbot 0.87.9547b0c
qTbot is base back end library for your c++ Qt projects.
telegramsinglerquest.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2023-2024 QuasarApp.
3//# Distributed under the GPLv3 software license, see the accompanying
4//# Everyone is permitted to copy and distribute verbatim copies
5//# of this license document, but changing it is not allowed.
6//#
7
8#ifndef TELEGRAMSINGLERQUEST_H
9#define TELEGRAMSINGLERQUEST_H
10
11#include <qTbot/irequest.h>
12#include <QVariant>
13#include <QMap>
14
15namespace qTbot {
16
37{
38public:
44 TelegramSingleRquest(const QString &request, const QMap<QString, QVariant> &args);
45
50 TelegramSingleRquest(const QString& request);
51
52 QString baseAddress() const override;
53 RequestMethod method() const override;
54
55};
56}
57#endif // TELEGRAMSINGLERQUEST_H
The TelegramSingleRquest class Is base class for all single requests commands with arguments.
RequestMethod method() const override
method returns method of the request.
QString baseAddress() const override
baseAddress This method return base domain of remote server.
The iRequest class Is main interface for all custom requests.
Definition irequest.h:33
RequestMethod
RequestMethod Tgis islist of supported requests types of the requests.
Definition irequest.h:40
const QMap< QString, QVariant > & args() const
args This method returns a current list of arguments
Definition irequest.cpp:30
const QString & request() const
request return current requests commnad.
Definition irequest.cpp:94