Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 655 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 655 Bytes

SmppClient

Create your messages.

var multiMessage = new AnMultiMessage("37493112233", "Հայերեն հաղորդագրություն:")
{
    new AnMessage("37455111111", "Հայերեն հաղորդագրություն 1:"),
    new AnMessage("37455222222", "English message.")
};

Send

var client = new ConcreteClient(new MyBind());

IAnMultiResponse response = client.SendMessages(multiMessage);
if (response.StatusCode != StatusCode.ArtnixClient_SuccessAll)
{
    if (response.ErrorResponse != null)
    {
        // Check...
        string errorDataJson = response.ErrorResponse.SubmitSmRespErrorData;
    }
}

client.Dispose();