public override bool Send(SendMessage reqMsg) { using (HttpClient client = new HttpClient()) { string api = GetApi(reqMsg.Phone, reqMsg.Content, ConvertType(reqMsg.Type)); string result = client.GetStringAsync(api).Result; if (result.Split(',')[0] == "1") { return true; } else { return false; } } }
public abstract bool Send(SendMessage reqMsg);