public async Task <string> GetCreditAsync() { SMSHttp smsHttp = new SMSHttp(); if (await smsHttp.GetCreditAsync(CommEnvironment.SmsAccount, CommEnvironment.SmsPassWord)) { return(smsHttp.Credit.ToString()); } else { return("µo¥Í¿ù»~:" + smsHttp.ProcessMsg); } }
public async Task <bool> SendSmsAsync(string number, string subject, string message) { SMSHttp smsHttp = new SMSHttp(); return(await smsHttp.SendSMSAsync(CommEnvironment.SmsAccount, CommEnvironment.SmsPassWord, $@"{subject}", message, number, "")); }