Changeset 5 in chevmsgr for trunk/msg.cpp
- Timestamp:
- 08/27/15 00:29:54 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/msg.cpp
r4 r5 40 40 41 41 obj["command"] = cmd; 42 43 return json::Serialize(obj); 44 } 45 46 std::string Request::sms(const std::string & phone) const 47 { 48 DECLARE_TEMPLATE_OBJECT(obj, "sms"); 49 50 obj["phone"] = phone; 51 52 return json::Serialize(obj); 53 } 54 55 std::string Request::join(const std::string & id, const std::string & pw, const std::string & sms) 56 { 57 DECLARE_TEMPLATE_OBJECT(obj, "join"); 58 59 obj["id" ] = id; 60 obj["pw" ] = pw; 61 obj["sms"] = sms; 42 62 43 63 return json::Serialize(obj);
Note:
See TracChangeset
for help on using the changeset viewer.