Closed Swimburger closed 2 years ago
@Swimburger Seems cool. It'd be amazing if you could just return a VoiceResponse
object and it automatically converts it to a TwiMLResult
for you without needing any function, however. Would that just involve overriding the .ToString()
method of VoiceResponse
, or something else perhaps?
@dprothero that would get the XML into the body, but wouldn't set the content-type header. Oh, and it would probably try to convert it to JSON, not a string :/
Implemented by #101.
We could add extension methods to make the TwiML generation code more eloquent. Consider this code:
Which could become:
with a convenient extension method.