Samchon Framework for CPP  1.0.0
ListService.hpp
1 #pragma once
2 #include <samchon/protocol/service/Service.hpp>
3 
4 namespace samchon
5 {
6  namespace example
7  {
8  namespace chat_service
9  {
10  class ListService;
11 
22  : public protocol::service::Service
23  {
24  private:
25  typedef protocol::service::Service super;
26 
27  public:
31  ListService(protocol::service::Client*);
32  virtual ~ListService() = default;
33 
34  virtual void replyData(std::shared_ptr<protocol::Invoke> invoke) override;
35 
36  private:
42  void createRoom(const std::string &);
43 
44  void handleRoomArray(std::shared_ptr<library::XML>);
45  void handleMakeRoom(bool);
46  void handleRoomArray(bool);
47  };
48  };
49  };
50 };
ListService(protocol::service::Client *)
Construct from a client.
A list service of chat rooms.
Definition: ListService.hpp:21
void createRoom(const std::string &)
Create a chat room.