public SendSmsRequestBody(string username, string password, SMS_Center.ServiceReference1.ArrayOfString to, string from, string text, bool isflash, string udh, SMS_Center.ServiceReference1.ArrayOfLong recId, byte[] status) { this.username = username; this.password = password; this.to = to; this.from = from; this.text = text; this.isflash = isflash; this.udh = udh; this.recId = recId; this.status = status; }
public int SendSms(string username, string password, SMS_Center.ServiceReference1.ArrayOfString to, string from, string text, bool isflash, string udh, ref SMS_Center.ServiceReference1.ArrayOfLong recId, ref byte[] status) { SMS_Center.ServiceReference1.SendSmsRequest inValue = new SMS_Center.ServiceReference1.SendSmsRequest(); inValue.Body = new SMS_Center.ServiceReference1.SendSmsRequestBody(); inValue.Body.username = username; inValue.Body.password = password; inValue.Body.to = to; inValue.Body.from = from; inValue.Body.text = text; inValue.Body.isflash = isflash; inValue.Body.udh = udh; inValue.Body.recId = recId; inValue.Body.status = status; SMS_Center.ServiceReference1.SendSmsResponse retVal = ((SMS_Center.ServiceReference1.SendSoap)(this)).SendSms(inValue); recId = retVal.Body.recId; status = retVal.Body.status; return(retVal.Body.SendSmsResult); }
public System.Threading.Tasks.Task <SMS_Center.ServiceReference1.SendSmsResponse> SendSmsAsync(string username, string password, SMS_Center.ServiceReference1.ArrayOfString to, string from, string text, bool isflash, string udh, SMS_Center.ServiceReference1.ArrayOfLong recId, byte[] status) { SMS_Center.ServiceReference1.SendSmsRequest inValue = new SMS_Center.ServiceReference1.SendSmsRequest(); inValue.Body = new SMS_Center.ServiceReference1.SendSmsRequestBody(); inValue.Body.username = username; inValue.Body.password = password; inValue.Body.to = to; inValue.Body.from = from; inValue.Body.text = text; inValue.Body.isflash = isflash; inValue.Body.udh = udh; inValue.Body.recId = recId; inValue.Body.status = status; return(((SMS_Center.ServiceReference1.SendSoap)(this)).SendSmsAsync(inValue)); }