Changeset 5 in chevmsgr for trunk/msg.cpp


Ignore:
Timestamp:
08/27/15 00:29:54 (9 years ago)
Author:
cheese
Message:

클라이언트 메시지 추가 및 안정화

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/msg.cpp

    r4 r5  
    4040
    4141        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;
    4262
    4363        return json::Serialize(obj);
Note: See TracChangeset for help on using the changeset viewer.