Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Conversation

@sarahcstringer
Copy link
Contributor

referSip methods were deprecated; code samples should be updated to reflect this.

(Context from the twilio-java library: https://github.com/twilio/twilio-java/blob/main/UPGRADE.md#changed---renamed-nested-twiml-methods)

These code samples were automatically generated and verified with the Twilio twiml generator (https://github.com/TwilioDevEd/twiml-generator).

Sarah Stringer added 2 commits February 1, 2021 16:29
`referSip` methods were deprecated; code samples should
be updated to reflect this.

These code samples were automatically generated with
the Twilio twiml generator
(https://github.com/TwilioDevEd/twiml-generator).
The twiml generator script added these unnecessary imports.
Copy link

@craigsdennis craigsdennis left a comment

Choose a reason for hiding this comment

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

LGTM!

const refer = response.refer({
'action': '/handleRefer',
'method': 'POST'
action: '/handleRefer',

Choose a reason for hiding this comment

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

Interesting...did you change this or did the formatting change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This as an automated formatting change

public static void main(String[] args) {
ReferSip sip = new ReferSip.Builder("sip:alice@example.com").build();
Refer refer = new Refer.Builder().action("/handleRefer").method(HttpMethod.POST).referSip(number).build();
Refer refer = new Refer.Builder().action("/handleRefer").method(HttpMethod.POST).sip(sip).build();

Choose a reason for hiding this comment

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

Interesting the typing here is different than the C# use case, but unrelated to this PR

@sarahcstringer sarahcstringer merged commit a556b38 into master Feb 5, 2021
@sarahcstringer sarahcstringer deleted the fix-refer-sip branch February 5, 2021 19:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants