summaryrefslogtreecommitdiff
path: root/include/tgbot/net/TgLongPoll.h
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2018-07-23 01:56:42 +0300
committerOleg Morozenkov <m@oleg.rocks>2018-07-23 01:56:42 +0300
commitd47ee877be5d1175bdc36f2d87881ddaf875a8e9 (patch)
tree7fd20cdc1236fe6b832ae980de12afd7071ebab9 /include/tgbot/net/TgLongPoll.h
parentcea20d4078f2088dea0dd589f1cc9dd7ee22461b (diff)
Refactor http clients, fix webhook server, add more samples, change tabs to 4 spaces
Diffstat (limited to 'include/tgbot/net/TgLongPoll.h')
-rw-r--r--include/tgbot/net/TgLongPoll.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/tgbot/net/TgLongPoll.h b/include/tgbot/net/TgLongPoll.h
index a0281f1..643031e 100644
--- a/include/tgbot/net/TgLongPoll.h
+++ b/include/tgbot/net/TgLongPoll.h
@@ -37,21 +37,21 @@ namespace TgBot {
class TgLongPoll {
public:
- TgLongPoll(const Api* api, const EventHandler* eventHandler, int32_t, int32_t, const std::shared_ptr<std::vector<std::string>>&);
- TgLongPoll(const Bot& bot, int32_t = 100, int32_t = 60, const std::shared_ptr<std::vector<std::string>>& = nullptr);
+ TgLongPoll(const Api* api, const EventHandler* eventHandler, int32_t, int32_t, const std::shared_ptr<std::vector<std::string>>&);
+ TgLongPoll(const Bot& bot, int32_t = 100, int32_t = 60, const std::shared_ptr<std::vector<std::string>>& = nullptr);
- /**
- * @brief Starts long poll. After new update will come, this method will parse it and send to EventHandler which invokes your listeners. Designed to be executed in a loop.
- */
- void start();
+ /**
+ * @brief Starts long poll. After new update will come, this method will parse it and send to EventHandler which invokes your listeners. Designed to be executed in a loop.
+ */
+ void start();
private:
- const Api* _api;
- const EventHandler* _eventHandler;
- int32_t _lastUpdateId = 0;
- int32_t _limit;
- int32_t _timeout;
- std::shared_ptr<std::vector<std::string>> _allowupdates;
+ const Api* _api;
+ const EventHandler* _eventHandler;
+ int32_t _lastUpdateId = 0;
+ int32_t _limit;
+ int32_t _timeout;
+ std::shared_ptr<std::vector<std::string>> _allowupdates;
};
}