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 0663a36

Browse files
Updated files
1 parent a0132fe commit 0663a36

File tree

41 files changed

+31357
-1499
lines changed

Some content is hidden

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

41 files changed

+31357
-1499
lines changed
File renamed without changes.
Lines changed: 56 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,57 @@
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 APIMATIC.SDK.Common;
8-
using APIMATIC.SDK.Http.Client;
9-
using APIMATIC.SDK.Http.Response;
10-
using MessageMedia.Webhooks.Exceptions;
11-
12-
namespace MessageMedia.Webhooks.Controllers
13-
{
14-
public partial class BaseController
15-
{
16-
#region shared http client instance
17-
private static object syncObject = new object();
18-
private static IHttpClient clientInstance = null;
19-
20-
public static IHttpClient ClientInstance
21-
{
22-
get
23-
{
24-
lock(syncObject)
25-
{
26-
if(null == clientInstance)
27-
{
28-
clientInstance = new HTTPClient()
29-
;
30-
}
31-
return clientInstance;
32-
}
33-
}
34-
set
35-
{
36-
lock (syncObject)
37-
{
38-
if (value is IHttpClient)
39-
{
40-
clientInstance = value;
41-
}
42-
}
43-
}
44-
}
45-
#endregion shared http client instance
46-
47-
internal ArrayDeserialization ArrayDeserializationFormat = ArrayDeserialization.Indexed;
48-
internal static char ParameterSeparator = '&';
49-
50-
/// <summary>
51-
/// Validates the response against HTTP errors defined at the API level
52-
/// </summary>
53-
/// <param name="_response">The response recieved</param>
54-
/// <param name="_context">Context of the request and the recieved response</param>
55-
internal void ValidateResponse(HttpResponse _response, HttpContext _context)
56-
{
57-
if ((_response.StatusCode < 200) || (_response.StatusCode > 208)) //[200,208] = HTTP OK
58-
throw new APIException(@"HTTP Response Not OK", _context);
59-
}
60-
}
1+
2+
using System;
3+
using APIMATIC.SDK.Common;
4+
using APIMATIC.SDK.Http.Client;
5+
using APIMATIC.SDK.Http.Response;
6+
using MessageMedia.Webhooks.Exceptions;
7+
8+
namespace MessageMedia.Webhooks.Controllers
9+
{
10+
public partial class BaseController
11+
{
12+
#region shared http client instance
13+
private static object syncObject = new object();
14+
private static IHttpClient clientInstance = null;
15+
16+
public static IHttpClient ClientInstance
17+
{
18+
get
19+
{
20+
lock(syncObject)
21+
{
22+
if(null == clientInstance)
23+
{
24+
clientInstance = new HTTPClient()
25+
;
26+
}
27+
return clientInstance;
28+
}
29+
}
30+
set
31+
{
32+
lock (syncObject)
33+
{
34+
if (value is IHttpClient)
35+
{
36+
clientInstance = value;
37+
}
38+
}
39+
}
40+
}
41+
#endregion shared http client instance
42+
43+
internal ArrayDeserialization ArrayDeserializationFormat = ArrayDeserialization.Indexed;
44+
internal static char ParameterSeparator = '&';
45+
46+
/// <summary>
47+
/// Validates the response against HTTP errors defined at the API level
48+
/// </summary>
49+
/// <param name="_response">The response recieved</param>
50+
/// <param name="_context">Context of the request and the recieved response</param>
51+
internal void ValidateResponse(HttpResponse _response, HttpContext _context)
52+
{
53+
if ((_response.StatusCode < 200) || (_response.StatusCode > 208)) //[200,208] = HTTP OK
54+
throw new APIException(@"HTTP Response Not OK", _context);
55+
}
56+
}
6157
}

‎MessageMediaWebhooks.PCL/Controllers/IWebhooksController.cs‎ renamed to ‎MessageMedia.SDK.Webhooks/Controllers/IWebhooksController.cs‎

Lines changed: 272 additions & 276 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
(0)

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