Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add undocumented options to requests #317

Merged
3 commits merged into from Jan 10, 2017

Conversation

ghost
Copy link

@ghost ghost commented Dec 17, 2016

According to the wiki only Conference, Dial, and Pause have undocumented options. However, for consistency should we add this option to all TwiML verbs - in my opinion no.

@@ -128,6 +134,9 @@ public String apply(ConferenceEvent event) {
@XmlValue
private final String name;

@XmlAnyAttribute
private Map<QName, String> options;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the XML serializer work serializing the key to a QName?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@efossier Yes. I specifically choose QName for this reason.

@@ -224,6 +234,16 @@ public String getName() {
return name;
}

public Map<String, String> getOptions() {
Map<String, String> convertedMap = new HashMap();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be using the <> here?

@codejudas
Copy link
Contributor

+1

@ghost ghost merged commit f45d240 into master Jan 10, 2017
@ghost ghost deleted the bug/issue-11/undocumented-options branch January 10, 2017 21:20
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants