protected JsonResult RepReurn(int code, string msg, object data) { RepMsg rg = new RepMsg() { Code = code, Message = msg, Data = data }; return(base.Json(rg, JsonRequestBehavior.AllowGet)); }
protected JsonResult RepReurnOK(object data) { RepMsg rg = new RepMsg() { Code = 0, Data = data }; return(base.Json(rg, JsonRequestBehavior.AllowGet)); }
protected JsonResult RepReurnError(string msg) { RepMsg rg = new RepMsg() { Code = -1, Message = msg }; return(base.Json(rg, JsonRequestBehavior.AllowGet)); }
public void AddNewGroupToList(long GroupID) { RepMsg _new = new RepMsg(); _new.AllowRepeat = true; _new.AllowReply = true; _new.FromQQ = 0; _new.LastRep = ""; _new.Msg = ""; GroupState.Add(GroupID, _new); }