public void SetSmsBookType(SMSBoxType type) { SmsMsgs.Instance.SMSBoxType = type; comparableListView1.Items.Clear(); RefreshList(); ctrTitle1.Title = type == SMSBoxType.Inbox ? "Inbox SMS" : "Outbox SMS"; }
public static string GetSmS(string username, string password, SMSBoxType type) { string strUrl; if (type == SMSBoxType.Inbox) { strUrl = "https://sip.nogafone.com/noga/getsms.php?"; } else { strUrl = "https://sip.nogafone.com/noga/getsmssent.php?"; } string strPost = "username="******"&password="******""; WebClient x = new System.Net.WebClient(); // x.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore); x.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials; return(x.DownloadString(strUrl + strPost)); }
public static bool DelSmS(string username, string password, string MsgIds, SMSBoxType type) { try { string strUrl; if (type == SMSBoxType.Inbox) { strUrl = "https://sip.nogafone.com/noga/smsdelrec.php?"; } else { strUrl = "https://sip.nogafone.com/noga/smsdelsend.php?"; } string strPost = "username="******"&password="******"&smsid=" + MsgIds; WebClient x = new System.Net.WebClient(); x.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials; string ret = x.DownloadString(strUrl + strPost); return(Convert.ToBoolean(int.Parse(ret))); } catch { return(false); } }