12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace LYFZ.WinicSmsInterface
- {
-
-
-
- public class WebServiceSmsInterface
- {
- public WebServiceSmsInterface() { }
-
-
-
-
-
-
- public static SmsUserInfo GetSmsUserInfo(string uid,string pwd)
- {
- winic.SmsService.Service1 ws = new winic.SmsService.Service1();
- string infoStr= ws.GetUserInfo(uid,pwd);
- return new SmsUserInfo(infoStr);
- }
-
-
-
-
-
-
-
-
-
- public static string SendSmsMessages(string uid, string pwd, string tos, string msg, string otime = "")
- {
- winic.SmsService.Service1 ws = new winic.SmsService.Service1();
- string infoStr = ws.SendMessages(uid, pwd, tos, msg, otime);
- return infoStr;
- }
-
-
-
-
-
-
-
-
- public static SmsWebServiceSendReturnInfo GetMessageRecord(string uid, string pwd, string num, string isday = "")
- {
- winic.SmsService.Service1 ws = new winic.SmsService.Service1();
- if (isday == "")
- {
- isday = DateTime.Now.ToString("yyyyMMdd");
- }
- string infoStr = ws.GetMessageRecord(uid, pwd, num, "", "", isday);
- return new SmsWebServiceSendReturnInfo(infoStr);
- }
-
-
-
-
-
-
-
- public static SendRecordQueryList GetMessageRecord(string uid, string pwd, string isday = "")
- {
- winic.SmsService.Service1 ws = new winic.SmsService.Service1();
- if (isday == "")
- {
- isday = DateTime.Now.ToString("yyyyMMdd");
- }
- string infoStr = ws.GetMessageRecord(uid, pwd, "", "", "", isday);
- return new SendRecordQueryList(infoStr);
- }
- }
- }
|