Add IConnector interface with corresponding types
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
namespace MBFT
|
||||
{
|
||||
struct User
|
||||
{
|
||||
std::int64_t id;
|
||||
std::string firstName;
|
||||
std::string lastName;
|
||||
std::string username;
|
||||
};
|
||||
|
||||
struct Chat
|
||||
{
|
||||
std::int64_t id;
|
||||
std::string title;
|
||||
};
|
||||
|
||||
struct InboundMessage
|
||||
{
|
||||
std::int32_t id;
|
||||
std::int32_t thread_id;
|
||||
std::uint32_t date;
|
||||
std::string text;
|
||||
std::shared_ptr<User> from;
|
||||
std::shared_ptr<Chat> chat;
|
||||
};
|
||||
|
||||
struct OutboundMessage
|
||||
{
|
||||
std::int64_t target_chat_id;
|
||||
std::string text;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user