public string ChatInfo(string mainId, string subId) { private_letter pl = new private_letter(); List <Hashtable> ht = pl.getChatInfo(mainId, subId); JavaScriptSerializer js = new JavaScriptSerializer(); string strJson = js.Serialize(ht); return(strJson); }
public string sendChat(string send_id, string receiver_id, string content) { private_letter pl = new private_letter(); Hashtable ht = pl.send(send_id, receiver_id, content); JavaScriptSerializer js = new JavaScriptSerializer(); string strJson = js.Serialize(ht); return(strJson); }
public string Contacts(string id) { private_letter pl = new private_letter(); List <Hashtable> ht = pl.getContacts(id); JavaScriptSerializer js = new JavaScriptSerializer(); string strJson = js.Serialize(ht); return(strJson); }