27
27
28
28
namespace Twilio . Rest . Numbers . V1
29
29
{
30
- public class PortingWebhookConfigurationFetchResource : Resource
30
+ public class WebhookResource : Resource
31
31
{
32
32
33
33
34
34
35
35
36
36
37
- private static Request BuildFetchRequest ( FetchPortingWebhookConfigurationFetchOptions options , ITwilioRestClient client )
37
+ private static Request BuildFetchRequest ( FetchWebhookOptions options , ITwilioRestClient client )
38
38
{
39
39
40
40
string path = "/v1/Porting/Configuration/Webhook" ;
@@ -50,10 +50,10 @@ private static Request BuildFetchRequest(FetchPortingWebhookConfigurationFetchOp
50
50
}
51
51
52
52
/// <summary> Allows to fetch the webhook configuration </summary>
53
- /// <param name="options"> Fetch PortingWebhookConfigurationFetch parameters </param>
53
+ /// <param name="options"> Fetch Webhook parameters </param>
54
54
/// <param name="client"> Client to make requests to Twilio </param>
55
- /// <returns> A single instance of PortingWebhookConfigurationFetch </returns>
56
- public static PortingWebhookConfigurationFetchResource Fetch ( FetchPortingWebhookConfigurationFetchOptions options , ITwilioRestClient client = null )
55
+ /// <returns> A single instance of Webhook </returns>
56
+ public static WebhookResource Fetch ( FetchWebhookOptions options , ITwilioRestClient client = null )
57
57
{
58
58
client = client ?? TwilioClient . GetRestClient ( ) ;
59
59
var response = client . Request ( BuildFetchRequest ( options , client ) ) ;
@@ -62,10 +62,10 @@ public static PortingWebhookConfigurationFetchResource Fetch(FetchPortingWebhook
62
62
63
63
#if ! NET35
64
64
/// <summary> Allows to fetch the webhook configuration </summary>
65
- /// <param name="options"> Fetch PortingWebhookConfigurationFetch parameters </param>
65
+ /// <param name="options"> Fetch Webhook parameters </param>
66
66
/// <param name="client"> Client to make requests to Twilio </param>
67
- /// <returns> Task that resolves to A single instance of PortingWebhookConfigurationFetch </returns>
68
- public static async System . Threading . Tasks . Task < PortingWebhookConfigurationFetchResource > FetchAsync ( FetchPortingWebhookConfigurationFetchOptions options ,
67
+ /// <returns> Task that resolves to A single instance of Webhook </returns>
68
+ public static async System . Threading . Tasks . Task < WebhookResource > FetchAsync ( FetchWebhookOptions options ,
69
69
ITwilioRestClient client = null )
70
70
{
71
71
client = client ?? TwilioClient . GetRestClient ( ) ;
@@ -75,35 +75,35 @@ public static async System.Threading.Tasks.Task<PortingWebhookConfigurationFetch
75
75
#endif
76
76
/// <summary> Allows to fetch the webhook configuration </summary>
77
77
/// <param name="client"> Client to make requests to Twilio </param>
78
- /// <returns> A single instance of PortingWebhookConfigurationFetch </returns>
79
- public static PortingWebhookConfigurationFetchResource Fetch (
78
+ /// <returns> A single instance of Webhook </returns>
79
+ public static WebhookResource Fetch (
80
80
ITwilioRestClient client = null )
81
81
{
82
- var options = new FetchPortingWebhookConfigurationFetchOptions ( ) { } ;
82
+ var options = new FetchWebhookOptions ( ) { } ;
83
83
return Fetch ( options , client ) ;
84
84
}
85
85
86
86
#if ! NET35
87
87
/// <summary> Allows to fetch the webhook configuration </summary>
88
88
/// <param name="client"> Client to make requests to Twilio </param>
89
- /// <returns> Task that resolves to A single instance of PortingWebhookConfigurationFetch </returns>
90
- public static async System . Threading . Tasks . Task < PortingWebhookConfigurationFetchResource > FetchAsync ( ITwilioRestClient client = null )
89
+ /// <returns> Task that resolves to A single instance of Webhook </returns>
90
+ public static async System . Threading . Tasks . Task < WebhookResource > FetchAsync ( ITwilioRestClient client = null )
91
91
{
92
- var options = new FetchPortingWebhookConfigurationFetchOptions ( ) { } ;
92
+ var options = new FetchWebhookOptions ( ) { } ;
93
93
return await FetchAsync ( options , client ) ;
94
94
}
95
95
#endif
96
96
97
97
/// <summary>
98
- /// Converts a JSON string into a PortingWebhookConfigurationFetchResource object
98
+ /// Converts a JSON string into a WebhookResource object
99
99
/// </summary>
100
100
/// <param name="json"> Raw JSON string </param>
101
- /// <returns> PortingWebhookConfigurationFetchResource object represented by the provided JSON </returns>
102
- public static PortingWebhookConfigurationFetchResource FromJson ( string json )
101
+ /// <returns> WebhookResource object represented by the provided JSON </returns>
102
+ public static WebhookResource FromJson ( string json )
103
103
{
104
104
try
105
105
{
106
- return JsonConvert . DeserializeObject < PortingWebhookConfigurationFetchResource > ( json ) ;
106
+ return JsonConvert . DeserializeObject < WebhookResource > ( json ) ;
107
107
}
108
108
catch ( JsonException e )
109
109
{
@@ -154,7 +154,7 @@ public static string ToJson(object model)
154
154
155
155
156
156
157
- private PortingWebhookConfigurationFetchResource ( ) {
157
+ private WebhookResource ( ) {
158
158
159
159
}
160
160
}
0 commit comments