public void OnClickClinet() { //SocketManager.Instance.ClientConnectServer(SocketManager.Instance.ip, SocketManager.Instance.port, (o) => { print(o); }); //CloseUI(); //SocketManager.Instance.myCurrent = SocketManager.Character.Client; postObj.Post(SocketManager.Instance.ip, "111"); }
public string post(string user_id, string select, string title, string content, ArrayList picture_name) { post post1 = new post(); Hashtable ht = post1.Post(user_id, select, title, content); ht.Add("picture", insert_post_picture(picture_name, post1.post_id)); JavaScriptSerializer js = new JavaScriptSerializer(); string strJson = js.Serialize(ht); return(strJson); }
public string post(string user_id, string section_id, string title, string content_1, IFormCollection Upload) { post post1 = new post(); Hashtable ht = post1.Post(user_id, section_id, title, content_1); ht.Add("picture", upload(Upload, (string)ht["post_id"])); JavaScriptSerializer js = new JavaScriptSerializer(); string strJson = js.Serialize(ht); return(strJson); }
public string post(string user_id, string select, string title, string content) { post post1 = new post(); Hashtable ht = post1.Post(user_id, select, title, content); foreach (string i in common.pic) { insert_post_picture(i, post1.post_id); } ht.Add("picture", common.pic); JavaScriptSerializer js = new JavaScriptSerializer(); string strJson = js.Serialize(ht); return(strJson); }