static RegionalOptions() { Default = new RegionalOptions { AllowNoSign = false, ProcessNaturalCharacterOnly = false }; }
private static async Task <string> AdvancedSmsAsync() { Console.WriteLine("-------------------------------"); Console.WriteLine("Sending fully featured textual message with India DLT regional options..."); SendMultipleTextualSmsAdvanced smsClient = new SendMultipleTextualSmsAdvanced(BASIC_AUTH_CONFIGURATION); Destination destination = new Destination { To = TO }; IndiaDltOptions indiaDlt = new IndiaDltOptions(); indiaDlt.ContentTemplateId = "some-content-template-id"; indiaDlt.PrincipalEntityId = "some-principal-entity-id"; RegionalOptions regionalOptions = new RegionalOptions(); regionalOptions.IndiaDlt = indiaDlt; Message message = new Message { From = FROM, Destinations = new List <Destination>(1) { destination }, Text = "Advanced message example with India DLT regional options", Regional = regionalOptions }; SMSAdvancedTextualRequest request = new SMSAdvancedTextualRequest { Messages = new List <Message>(1) { message } }; SMSResponse smsResponse = await smsClient.ExecuteAsync(request); Console.WriteLine("Sending fully featured textual message with India DLT regional options complete."); SMSResponseDetails sentMessageInfo = smsResponse.Messages[0]; Console.WriteLine("-------------------------------"); Console.WriteLine("Message ID: " + sentMessageInfo.MessageId); Console.WriteLine("Receiver: " + sentMessageInfo.To); Console.WriteLine("Message status: " + sentMessageInfo.Status.Name); Console.WriteLine("-------------------------------"); return(sentMessageInfo.MessageId); }