Skip to content

Commit e638ac6

Browse files
Update the call create 'from' param to be endpoint type for client identifier support (#480)
1 parent 8a5953d commit e638ac6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Twilio/Rest/Api/V2010/Account/CallOptions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class CreateCallOptions : IOptions<CallResource>
2929
/// <summary>
3030
/// Twilio number from which to originate the call
3131
/// </summary>
32-
public Types.PhoneNumber From { get; }
32+
public IEndpoint From { get; }
3333
/// <summary>
3434
/// The absolute URL that returns TwiML for this call
3535
/// </summary>
@@ -132,7 +132,7 @@ public class CreateCallOptions : IOptions<CallResource>
132132
/// </summary>
133133
/// <param name="to"> Phone number, SIP address, or client identifier to call </param>
134134
/// <param name="from"> Twilio number from which to originate the call </param>
135-
public CreateCallOptions(IEndpoint to, Types.PhoneNumber from)
135+
public CreateCallOptions(IEndpoint to, IEndpoint from)
136136
{
137137
To = to;
138138
From = from;

src/Twilio/Rest/Api/V2010/Account/CallResource.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static async System.Threading.Tasks.Task<CallResource> CreateAsync(Create
146146
/// <param name="client"> Client to make requests to Twilio </param>
147147
/// <returns> A single instance of Call </returns>
148148
public static CallResource Create(IEndpoint to,
149-
Types.PhoneNumber from,
149+
IEndpoint from,
150150
string pathAccountSid = null,
151151
Uri url = null,
152152
string applicationSid = null,
@@ -217,7 +217,7 @@ public static CallResource Create(IEndpoint to,
217217
/// <param name="client"> Client to make requests to Twilio </param>
218218
/// <returns> Task that resolves to A single instance of Call </returns>
219219
public static async System.Threading.Tasks.Task<CallResource> CreateAsync(IEndpoint to,
220-
Types.PhoneNumber from,
220+
IEndpoint from,
221221
string pathAccountSid = null,
222222
Uri url = null,
223223
string applicationSid = null,

0 commit comments

Comments
 (0)