Hello,
I'm trying to determine if a message has been successfully sent and I can't find an example of how to do so using QueryAsync. Our old app would use the SubmitText function which would return a SubmitSmResp. From there we would be able to determine if the message was successfully sent. In the new version I'm working on we have a requirement to send messages asynchronously and I don't know how to get the status of a sent message. Can someone give me an example of how to get the status of a sent message? I should also mention that I don't have access to delivery receipts, it's not available to us for now.
QueryAsync Example
Re: QueryAsync Example
Hello Joe,
When you send sms with method SybmitAsync, you can receive SubmitSmResp response in the event evSubmitComplete.
When you send sms with method SybmitAsync, you can receive SubmitSmResp response in the event evSubmitComplete.
Code: Select all
_client.evSubmitComplete += ClientOnEvSubmitComplete;
private void ClientOnEvSubmitComplete(object sender, SubmitSmResp data)
{
_repository.StoreMessagePartResponse(_sessionId, data.Sequence, data.MessageId);
}
private void SendSMS()
{
_client.SubmitAsync(pduList);
}