public ActionResult Message() { string uid = CurrentUid(); WebimClient c = CurrentClient(Request["ticket"]); string type = Request["type"]; string offline = Request["offline"]; string to = Request["to"]; string body = Request["body"]; string style = Request["style"]; if (style == null) { style = ""; } WebimMessage msg = new WebimMessage(type, to, c.Endpoint.Nick, body, style, Timestamp()); msg.Offline = offline.Equals("true") ? true : false; c.Publish(msg); if (body != null && !body.StartsWith("webim-event:")) { model.InsertHistory(uid, msg); } return(Json("ok")); }
public void InsertHistory(string uid, WebimMessage msg) { // TODO Auto-generated method stub }