Пример #1
0
        private SMSAsyn()
        {
            string user;
            string passwd;
            string projId;

            switch (TBConfig.getInstance().providorId)// 1 是飞Q,2是51,3 是爱玛
            {
                case 1:
                    user = "******";
                    passwd = "123456flag";
                   // projId = "17";
                    projId = "21";
                    smsInstance = new FQSMS(user, passwd, projId);
                    break;
                case 2:
                    user = "******";
                    passwd = "hispy++";
                    projId = "2";
                    smsInstance = new WYSMS(user, passwd, projId);
                    break;

                default:
                    user = "******";
                    passwd = "hispy@am";
                    projId = "27";
                    smsInstance = new AimaSMS(user, passwd, projId);
                    break;

            }
            bFinishedList = new List<bool>();
            rtnList = new List<SMSResult>();
        }
Пример #2
0
 public static void InitInstance(string user, string passwd, string projid, string platform)
 {
     switch (platform)
     {
         case "FQ":
             smsInstance = new FQSMS(user, passwd, "17");
             break;
         case "51":
             smsInstance = new WYSMS(user, passwd, "2");
             break;
         case "AM":
             smsInstance = new AimaSMS(user, passwd, "27");
             break;
         case "YM":
             smsInstance = new YMSMS(user, passwd, "8299");
             break;
         case "KM":
             smsInstance = new KMSMS(user, passwd, "125");
             break;
         case "YPY":
             smsInstance = new YPYSMS(user, passwd, "3913");
             break;
         case "ZM":
             smsInstance = new ZMSMS(user, passwd, "3102");
             break;
         default:
             smsInstance = null;
             break;
     }
 }