File tree 1 file changed +20
-1
lines changed
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 ;
2
3
3
4
namespace Twilio . AspNet . Core
4
5
{
@@ -11,6 +12,15 @@ public static class TwiMLExtensions
11
12
/// <returns></returns>
12
13
public static TwiMLResult ToTwiMLResult ( this VoiceResponse voiceResponse )
13
14
=> 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 ) ;
14
24
15
25
/// <summary>
16
26
/// Returns a properly formatted TwiML response
@@ -19,5 +29,14 @@ public static TwiMLResult ToTwiMLResult(this VoiceResponse voiceResponse)
19
29
/// <returns></returns>
20
30
public static TwiMLResult ToTwiMLResult ( this MessagingResponse messagingResponse )
21
31
=> 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 ) ;
22
41
}
23
42
}
You can’t perform that action at this time.
0 commit comments