File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1- using Twilio . TwiML ;
1+ using System . Xml . Linq ;
2+ using Twilio . TwiML ;
23
34namespace Twilio . AspNet . Core
45{
@@ -11,6 +12,15 @@ public static class TwiMLExtensions
1112 /// <returns></returns>
1213 public static TwiMLResult ToTwiMLResult ( this VoiceResponse voiceResponse )
1314 => new TwiMLResult ( voiceResponse ) ;
15+
16+ /// <summary>
17+ /// Returns a properly formatted TwiML response
18+ /// </summary>
19+ /// <param name="voiceResponse"></param>
20+ /// <param name="formattingOptions">Specifies how to format TwiML</param>
21+ /// <returns></returns>
22+ public static TwiMLResult ToTwiMLResult ( this VoiceResponse voiceResponse , SaveOptions formattingOptions )
23+ => new TwiMLResult ( voiceResponse , formattingOptions ) ;
1424
1525 /// <summary>
1626 /// Returns a properly formatted TwiML response
@@ -19,5 +29,14 @@ public static TwiMLResult ToTwiMLResult(this VoiceResponse voiceResponse)
1929 /// <returns></returns>
2030 public static TwiMLResult ToTwiMLResult ( this MessagingResponse messagingResponse )
2131 => new TwiMLResult ( messagingResponse ) ;
32+
33+ /// <summary>
34+ /// Returns a properly formatted TwiML response
35+ /// </summary>
36+ /// <param name="messagingResponse"></param>
37+ /// <param name="formattingOptions">Specifies how to format TwiML</param>
38+ /// <returns></returns>
39+ public static TwiMLResult ToTwiMLResult ( this MessagingResponse messagingResponse , SaveOptions formattingOptions )
40+ => new TwiMLResult ( messagingResponse , formattingOptions ) ;
2241 }
2342}
You can’t perform that action at this time.
0 commit comments