-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBot.hpp
30 lines (29 loc) · 790 Bytes
/
Bot.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#ifndef Bot_CPP
#define Bot_CPP
#include "TokenReader.hpp"
#include <string>
class IBot{
protected:
std::unique_ptr<ITokenReader> reader;
std::string m_token;
// you should to create a vector that will store all wllowed commands
virtual void send_msg(unsigned,std::string) = 0;
virtual std::string read_token(std::string) = 0;
virtual std::string read_token() = 0;
virtual void recive() = 0;
public:
virtual ~IBot();
};
class ToDoListBot: protected IBot{
void recive() override;
void send_msg(unsigned, std::string) override;
std::string read_token(std::string)override;
public:
ToDoListBot();
ToDoListBot(ITokenReader&);
ToDoListBot(std::string&);
ToDoListBot(std::string&&);
~ToDoListBot() override;
};
#endif