Changeset 14 in chevmsgr for trunk/msg.hpp


Ignore:
Timestamp:
08/30/15 21:31:39 (9 years ago)
Author:
cheese
Message:

테스트 코드 추가
UI 모양 작업
채팅되는 상태까지 확인

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/msg.hpp

    r12 r14  
    3232    DECLARE_KEY(PW);
    3333    DECLARE_KEY(LOGIN);
     34    DECLARE_KEY(LOGOUT);
    3435    DECLARE_KEY(ADD_FRIEND);
    3536    DECLARE_KEY(OPEN_SESSION);
    3637    DECLARE_KEY(TO);
    37     DECLARE_KEY(CHAT);
     38    DECLARE_KEY(LISTEN);
     39    DECLARE_KEY(TELL);
    3840    DECLARE_KEY(FROM);
    3941    DECLARE_KEY(SESSION_ID);
     
    5052    class Message
    5153    {
    52     private:
     54    public:
    5355        json::Object mObject;
    5456
    55     public:
    5657        Message();
    5758
     
    7980
    8081        std::string type() const;
     82
     83        std::string serialize() const;
    8184    };
    8285
     
    105108        std::string login(const std::string & pw) const;
    106109
     110        std::string logout() const;
     111
    107112        std::string addFriend(const std::string & id) const;
    108113
    109         std::string openSession(const std::string & to) const;
     114        std::string openSession(const std::vector<std::string> & idList) const;
    110115
    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;
    112117
    113118        std::string getFriendList() const;
     
    122127
    123128        std::string friendList(const std::vector<SFriend> & friendList) const;
    124 
    125         std::string openSession(const std::vector<std::string> & idList) const;
    126129    };
    127130};
     
    156159
    157160    for (size_t iter = 1; iter < strings.size(); iter++)
    158         concat += strings[iter];
     161        concat += "," + strings[iter];
    159162
    160163    return concat;
Note: See TracChangeset for help on using the changeset viewer.