Changeset 14 in chevmsgr for trunk/msg.hpp
- Timestamp:
- 08/30/15 21:31:39 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/msg.hpp
r12 r14 32 32 DECLARE_KEY(PW); 33 33 DECLARE_KEY(LOGIN); 34 DECLARE_KEY(LOGOUT); 34 35 DECLARE_KEY(ADD_FRIEND); 35 36 DECLARE_KEY(OPEN_SESSION); 36 37 DECLARE_KEY(TO); 37 DECLARE_KEY(CHAT); 38 DECLARE_KEY(LISTEN); 39 DECLARE_KEY(TELL); 38 40 DECLARE_KEY(FROM); 39 41 DECLARE_KEY(SESSION_ID); … … 50 52 class Message 51 53 { 52 p rivate:54 public: 53 55 json::Object mObject; 54 56 55 public:56 57 Message(); 57 58 … … 79 80 80 81 std::string type() const; 82 83 std::string serialize() const; 81 84 }; 82 85 … … 105 108 std::string login(const std::string & pw) const; 106 109 110 std::string logout() const; 111 107 112 std::string addFriend(const std::string & id) const; 108 113 109 std::string openSession(const std:: string & to) const;114 std::string openSession(const std::vector<std::string> & idList) const; 110 115 111 std::string chat(const std::string & sessid, const std::string & message, const int sensitive) const;116 std::string tell(const std::string & sessid, const std::string & message, const int sensitive) const; 112 117 113 118 std::string getFriendList() const; … … 122 127 123 128 std::string friendList(const std::vector<SFriend> & friendList) const; 124 125 std::string openSession(const std::vector<std::string> & idList) const;126 129 }; 127 130 }; … … 156 159 157 160 for (size_t iter = 1; iter < strings.size(); iter++) 158 concat += strings[iter];161 concat += "," + strings[iter]; 159 162 160 163 return concat;
Note:
See TracChangeset
for help on using the changeset viewer.