Exemple #1
0
 public void SetSmsBookType(SMSBoxType type)
 {
     SmsMsgs.Instance.SMSBoxType = type;
     comparableListView1.Items.Clear();
     RefreshList();
     ctrTitle1.Title = type == SMSBoxType.Inbox ? "Inbox SMS" : "Outbox SMS";
 }
Exemple #2
0
        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));
        }
Exemple #3
0
        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); }
        }