ledger-core
WebSocketClient.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from websocket_client.djinni
3 
4 #ifndef DJINNI_GENERATED_WEBSOCKETCLIENT_HPP
5 #define DJINNI_GENERATED_WEBSOCKETCLIENT_HPP
6 
7 #include <memory>
8 #include <string>
9 #ifndef LIBCORE_EXPORT
10  #if defined(_MSC_VER)
11  #include <libcore_export.h>
12  #else
13  #define LIBCORE_EXPORT
14  #endif
15 #endif
16 
17 namespace ledger { namespace core { namespace api {
18 
19 class WebSocketConnection;
20 
23 public:
24  virtual ~WebSocketClient() {}
25 
31  virtual void connect(const std::string & url, const std::shared_ptr<WebSocketConnection> & connection) = 0;
32 
38  virtual void send(const std::shared_ptr<WebSocketConnection> & connection, const std::string & data) = 0;
39 
44  virtual void disconnect(const std::shared_ptr<WebSocketConnection> & connection) = 0;
45 };
46 
47 } } } // namespace ledger::core::api
48 #endif //DJINNI_GENERATED_WEBSOCKETCLIENT_HPP
virtual void connect(const std::string &url, const std::shared_ptr< WebSocketConnection > &connection)=0
Definition: WebSocketClient.hpp:22
Definition: Account.cpp:8
virtual void disconnect(const std::shared_ptr< WebSocketConnection > &connection)=0
virtual void send(const std::shared_ptr< WebSocketConnection > &connection, const std::string &data)=0