Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 511135a

Browse files
author
messagemedia
committed
Regenerated SDK
1 parent 567753f commit 511135a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+674
-1515
lines changed

‎.travis.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: csharp
2+
solution: MessageMediaWebhooks.sln
3+
install:
4+
- nuget restore MessageMediaWebhooks.sln
5+
- nuget install NUnit.Runners -Version 3.2.1 -OutputDirectory testrunner
6+
script:
7+
- xbuild /p:Configuration=Release MessageMediaWebhooks.sln
8+
- mono ./testrunner/NUnit.ConsoleRunner.3.2.1/tools/nunit3-console.exe ./MessageMediaWebhooks.Tests/bin/Release/MessageMediaWebhooks.Tests.dll

‎Jenkinsfile‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
node {
2+
stage 'Checkout'
3+
checkout scm
4+
5+
stage 'Prepare'
6+
bat 'nuget restore "MessageMediaWebhooks.sln"'
7+
bat 'nuget install NUnit.Runners -Version 3.2.1 -OutputDirectory testrunner'
8+
9+
stage 'Build'
10+
bat "MSBuild.exe /p:Configuration=Release \"MessageMediaWebhooks.sln\""
11+
stage 'Test'
12+
bat "testrunner\\NUnit.ConsoleRunner.3.2.1\\tools\\nunit3-console.exe MessageMediaWebhooks.Tests\\bin\\Release\MessageMediaWebhooks.Tests.dll"
13+
}
File renamed without changes.

‎MessageMediaWebhooks.Standard/Controllers/BaseController.cs‎ renamed to ‎MessageMediaWebhooks.PCL/Controllers/BaseController.cs‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/*
2-
* MessageMediaWebhooks.Standard
2+
* MessageMediaWebhooks.PCL
33
*
44
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
55
*/
66
using System;
7-
using MessageMedia.Webhooks;
8-
using MessageMedia.Webhooks.Utilities;
9-
using MessageMedia.Webhooks.Http.Client;
10-
using MessageMedia.Webhooks.Http.Response;
7+
using APIMATIC.SDK.Common;
8+
using APIMATIC.SDK.Http.Client;
9+
using APIMATIC.SDK.Http.Response;
1110
using MessageMedia.Webhooks.Exceptions;
1211

1312
namespace MessageMedia.Webhooks.Controllers

‎MessageMediaWebhooks.PCL/Controllers/IWebhooksController.cs‎

Lines changed: 277 additions & 0 deletions
Large diffs are not rendered by default.

‎MessageMediaWebhooks.Standard/Controllers/APIController.cs‎ renamed to ‎MessageMediaWebhooks.PCL/Controllers/WebhooksController.cs‎

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* MessageMediaWebhooks.Standard
2+
* MessageMediaWebhooks.PCL
33
*
44
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
55
*/
@@ -12,35 +12,34 @@
1212
using System.Text;
1313
using System.Threading.Tasks;
1414
using Newtonsoft.Json.Converters;
15-
using MessageMedia.Webhooks;
16-
using MessageMedia.Webhooks.Utilities;
17-
using MessageMedia.Webhooks.Http.Request;
18-
using MessageMedia.Webhooks.Http.Response;
19-
using MessageMedia.Webhooks.Http.Client;
15+
using APIMATIC.SDK.Common;
16+
using APIMATIC.SDK.Http.Request;
17+
using APIMATIC.SDK.Http.Response;
18+
using APIMATIC.SDK.Http.Client;
2019
using MessageMedia.Webhooks.Exceptions;
2120

2221
namespace MessageMedia.Webhooks.Controllers
2322
{
24-
public partial class APIController: BaseController
23+
public partial class WebhooksController: BaseController,IWebhooksController
2524
{
2625
#region Singleton Pattern
2726

2827
//private static variables for the singleton pattern
2928
private static object syncObject = new object();
30-
private static APIController instance = null;
29+
private static WebhooksController instance = null;
3130

3231
/// <summary>
3332
/// Singleton pattern implementation
3433
/// </summary>
35-
internal static APIController Instance
34+
internal static WebhooksController Instance
3635
{
3736
get
3837
{
3938
lock (syncObject)
4039
{
4140
if (null == instance)
4241
{
43-
instance = new APIController();
42+
instance = new WebhooksController();
4443
}
4544
}
4645
return instance;
@@ -262,7 +261,7 @@ public async Task<dynamic> CreateWebhookAsync(Models.CreateWebhookRequest body)
262261
/// <param name="page">Optional parameter: Example: </param>
263262
/// <param name="pageSize">Optional parameter: Example: </param>
264263
/// <return>Returns the dynamic response from the API call</return>
265-
public dynamic RetrieveWebhook(string page = null, string pageSize = null)
264+
public dynamic RetrieveWebhook(int? page = null, int? pageSize = null)
266265
{
267266
Task<dynamic> t = RetrieveWebhookAsync(page, pageSize);
268267
APIHelper.RunTaskSynchronously(t);
@@ -296,7 +295,7 @@ public dynamic RetrieveWebhook(string page = null, string pageSize = null)
296295
/// <param name="page">Optional parameter: Example: </param>
297296
/// <param name="pageSize">Optional parameter: Example: </param>
298297
/// <return>Returns the dynamic response from the API call</return>
299-
public async Task<dynamic> RetrieveWebhookAsync(string page = null, string pageSize = null)
298+
public async Task<dynamic> RetrieveWebhookAsync(int? page = null, int? pageSize = null)
300299
{
301300
//the base uri for api requests
302301
string _baseUri = Configuration.BaseUri;
@@ -409,7 +408,7 @@ public async Task DeleteWebhookAsync(Guid webhookId)
409408
}
410409

411410
/// <summary>
412-
/// Update a webhook. You can update all the attributes individually or together by submitting a PATCH request to the /webhooks/messages endpoint (the same endpoint used above to delete a webhook)
411+
/// Update a webhook. You can update individual attributes or all of them by submitting a PATCH request to the /webhooks/messages endpoint (the same endpoint used above to delete a webhook)
413412
/// A successful request to the retrieve webhook endpoint will return a response body as follows:
414413
/// ```
415414
/// {
@@ -437,7 +436,7 @@ public dynamic UpdateWebhook(Guid webhookId, Models.UpdateWebhookRequest body)
437436
}
438437

439438
/// <summary>
440-
/// Update a webhook. You can update all the attributes individually or together by submitting a PATCH request to the /webhooks/messages endpoint (the same endpoint used above to delete a webhook)
439+
/// Update a webhook. You can update individual attributes or all of them by submitting a PATCH request to the /webhooks/messages endpoint (the same endpoint used above to delete a webhook)
441440
/// A successful request to the retrieve webhook endpoint will return a response body as follows:
442441
/// ```
443442
/// {

‎MessageMediaWebhooks.Standard/Exceptions/CreateWebhook400ResponseException.cs‎ renamed to ‎MessageMediaWebhooks.PCL/Exceptions/CreateWebhook400ResponseException.cs‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* MessageMediaWebhooks.Standard
2+
* MessageMediaWebhooks.PCL
33
*
44
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
55
*/
@@ -12,11 +12,10 @@
1212
using System.Threading.Tasks;
1313
using Newtonsoft.Json;
1414
using Newtonsoft.Json.Converters;
15-
using MessageMedia.Webhooks.Http.Client;
15+
using APIMATIC.SDK.Http.Client;
1616

1717
using MessageMedia.Webhooks.Models;
18-
using MessageMedia.Webhooks;
19-
using MessageMedia.Webhooks.Utilities;
18+
using APIMATIC.SDK.Common;
2019

2120

2221
namespace MessageMedia.Webhooks.Exceptions

‎MessageMediaWebhooks.Standard/Exceptions/RetrieveWebhook400ResponseException.cs‎ renamed to ‎MessageMediaWebhooks.PCL/Exceptions/RetrieveWebhook400ResponseException.cs‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* MessageMediaWebhooks.Standard
2+
* MessageMediaWebhooks.PCL
33
*
44
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
55
*/
@@ -12,11 +12,10 @@
1212
using System.Threading.Tasks;
1313
using Newtonsoft.Json;
1414
using Newtonsoft.Json.Converters;
15-
using MessageMedia.Webhooks.Http.Client;
15+
using APIMATIC.SDK.Http.Client;
1616

1717
using MessageMedia.Webhooks.Models;
18-
using MessageMedia.Webhooks;
19-
using MessageMedia.Webhooks.Utilities;
18+
using APIMATIC.SDK.Common;
2019

2120

2221
namespace MessageMedia.Webhooks.Exceptions

‎MessageMediaWebhooks.Standard/Exceptions/UpdateWebhook400ResponseException.cs‎ renamed to ‎MessageMediaWebhooks.PCL/Exceptions/UpdateWebhook400ResponseException.cs‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* MessageMediaWebhooks.Standard
2+
* MessageMediaWebhooks.PCL
33
*
44
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
55
*/
@@ -12,11 +12,10 @@
1212
using System.Threading.Tasks;
1313
using Newtonsoft.Json;
1414
using Newtonsoft.Json.Converters;
15-
using MessageMedia.Webhooks.Http.Client;
15+
using APIMATIC.SDK.Http.Client;
1616

1717
using MessageMedia.Webhooks.Models;
18-
using MessageMedia.Webhooks;
19-
using MessageMedia.Webhooks.Utilities;
18+
using APIMATIC.SDK.Common;
2019

2120

2221
namespace MessageMedia.Webhooks.Exceptions
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* MessageMediaWebhooks.PCL
3+
*
4+
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
5+
*/
6+
using System;
7+
using MessageMedia.Webhooks.Controllers;
8+
9+
namespace MessageMedia.Webhooks
10+
{
11+
public partial interface IMessageMediaWebhooksClient
12+
{
13+
14+
/// <summary>
15+
/// Singleton access to Webhooks controller
16+
/// </summary>
17+
IWebhooksController Webhooks { get;}
18+
19+
}
20+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /