Example #1
0
        public static void IMC_SendMessage(int targetUserNo, StreamBuffer data, APICallbackHandler<ResponseBase> callback)
        {
            SecurePacket reqPacket = new SecurePacket(Protocol.GetID("CS_IMC_SendMessage_Req"));
            reqPacket.PutInt32(_userNo);
            reqPacket.PutInt32(targetUserNo);
            reqPacket.Write(data.Buffer);

            _request.SendPacket(reqPacket,
                       (resPacket) => { callback(new ResponseBase(resPacket)); });
        }