public void mailReadNotify(List <string> c2s_id) { var notify = new MailReadNotify(); notify.c2s_id.AddRange(c2s_id); _socket.notify(notify); }
public void Notify(string route, JsonObject msg) { if (pclient != null) { pclient.notify(route, msg); } }
public static void send(string message) { JsonObject msg = new JsonObject(); msg["content"] = message; msg["target"] = "*"; pc.notify("chat.chatHandler.send", msg); }
public void cjPlayEndNotify(string s2c_msg) { var notify = new CjPlayEndNotify(); notify.s2c_msg = s2c_msg; _socket.notify(notify); }
public void saveRankNotify(int c2s_selectedRankId) { var notify = new SaveRankNotify(); notify.c2s_selectedRankId = c2s_selectedRankId; _socket.notify(notify); }
public void queryItemStatusUpdateNotify(int index) { var notify = new QueryItemStatusUpdateNotify(); notify.index = index; _socket.notify(notify); }
public void battleEventNotify(byte[] c2s_data) { var notify = new BattleEventNotify(); notify.c2s_data = c2s_data; _socket.notify(notify); }
public void saveWingNotify(int c2s_wingLevel) { var notify = new SaveWingNotify(); notify.c2s_wingLevel= c2s_wingLevel; _socket.notify(notify); }
public static void send(string message) { JsonObject args = new JsonObject(); args["content"] = message; args["target"] = "*"; pc.notify("chat.chatHandler.send", args); }
private void button4_Click(object sender, EventArgs e) { this.label3.Text = "notify"; JsonObject msg = new JsonObject(); msg["uid"] = "notify"; _pomeloClient.notify("test.testHandler.testNotify", msg); }
public void send(string route, JsonObject data) { if (!mConnected) { Debug.Log("not connect."); return; } pc.notify("game.gameHandler." + route, data); }
public static bool send(string rid, string content, string from, string target) { JsonData data = new JsonData(); data["rid"] = rid; data["content"] = content; data["from"] = from; data["target"] = target; pc.notify("chat.chatHandler.send", data); return(true); }
private void sendMsg(uint pID, JsonObject msg, Action <Message> action) { if (_connection != null) { System.Object route; if (ROUTE_MAP.TryGetValue("P" + (int)pID, out route)) { if (action == null) { _connection.notify(route.ToString(), msg); } else { _connection.request(pID, route.ToString(), msg, action); } } } }
public void Update() { if (netWorkState != NetWorkState.WORK) { return; } while (requests.Count > 0) { RequestMessage req = requests.Dequeue(); if (req != null) { if (req.action == null) { client.notify(req.route, req.msg); } else { client.request(req.route, req.msg, req.action); } } } }
void OnNotify2(object sender, RoutedEventArgs e) { if (pc2 == null) { Log2("not connected."); return; } if (this.Method2.Text == String.Empty) { Log2("method empty."); return; } if (this.Data2.Text == String.Empty) { Log2("data empty."); return; } dynamic de = SimpleJson.SimpleJson.DeserializeObject(this.Data2.Text); JsonObject msg = de as JsonObject; pc2.notify(this.Method1.Text, msg); }
public void addBagItemTestNotify() { var notify = new AddBagItemTestNotify(); _socket.notify(notify); }
//通知给对方服务器一个消息,不会有回传数据 public void notify(string route, JsonObject message) { pclient.notify(route, message); }
/// <summary> /// notify server without response /// </summary> /// <param name="route"></param> /// <param name="data"></param> public void Notify(string route, JsonObject data) { m_Conn.notify(route, data); }