forked from loafle/openapi-generator-original
update samples
This commit is contained in:
parent
90233d6653
commit
cd2bd84bb6
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Initializes a new instance of the <see cref="AnotherFakeApi"/> class.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public AnotherFakeApi(String basePath)
|
||||
public AnotherFakeApi(string basePath)
|
||||
{
|
||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||
@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Gets the base path of the API client.
|
||||
/// </summary>
|
||||
/// <value>The base path</value>
|
||||
public String GetBasePath()
|
||||
public string GetBasePath()
|
||||
{
|
||||
return this.Configuration.BasePath;
|
||||
}
|
||||
@ -225,12 +225,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -284,12 +284,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Initializes a new instance of the <see cref="DefaultApi"/> class.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DefaultApi(String basePath)
|
||||
public DefaultApi(string basePath)
|
||||
{
|
||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||
@ -165,7 +165,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Gets the base path of the API client.
|
||||
/// </summary>
|
||||
/// <value>The base path</value>
|
||||
public String GetBasePath()
|
||||
public string GetBasePath()
|
||||
{
|
||||
return this.Configuration.BasePath;
|
||||
}
|
||||
@ -212,11 +212,11 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -263,11 +263,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
@ -826,7 +826,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Initializes a new instance of the <see cref="FakeApi"/> class.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public FakeApi(String basePath)
|
||||
public FakeApi(string basePath)
|
||||
{
|
||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||
@ -889,7 +889,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Gets the base path of the API client.
|
||||
/// </summary>
|
||||
/// <value>The base path</value>
|
||||
public String GetBasePath()
|
||||
public string GetBasePath()
|
||||
{
|
||||
return this.Configuration.BasePath;
|
||||
}
|
||||
@ -936,11 +936,11 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -987,11 +987,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -1039,12 +1039,12 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"*/*"
|
||||
};
|
||||
|
||||
@ -1094,12 +1094,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"*/*"
|
||||
};
|
||||
|
||||
@ -1148,12 +1148,12 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"*/*"
|
||||
};
|
||||
|
||||
@ -1203,12 +1203,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"*/*"
|
||||
};
|
||||
|
||||
@ -1257,12 +1257,12 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"*/*"
|
||||
};
|
||||
|
||||
@ -1312,12 +1312,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"*/*"
|
||||
};
|
||||
|
||||
@ -1366,12 +1366,12 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"*/*"
|
||||
};
|
||||
|
||||
@ -1421,12 +1421,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"*/*"
|
||||
};
|
||||
|
||||
@ -1473,11 +1473,11 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -1524,11 +1524,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -1579,12 +1579,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -1636,12 +1636,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -1698,12 +1698,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -1762,12 +1762,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -1820,12 +1820,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -1879,12 +1879,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -1966,12 +1966,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -2027,7 +2027,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (http_basic_test) required
|
||||
// http basic authentication required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||
}
|
||||
@ -2102,12 +2102,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -2164,7 +2164,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (http_basic_test) required
|
||||
// http basic authentication required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||
}
|
||||
@ -2217,12 +2217,12 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -2315,12 +2315,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -2408,11 +2408,11 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -2439,7 +2439,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (bearer_test) required
|
||||
// bearer authentication required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -2490,11 +2490,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -2522,7 +2522,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (bearer_test) required
|
||||
// bearer authentication required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -2565,12 +2565,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -2622,12 +2622,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -2684,12 +2684,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -2748,12 +2748,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -2829,11 +2829,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -2913,11 +2913,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
|
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Initializes a new instance of the <see cref="FakeClassnameTags123Api"/> class.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public FakeClassnameTags123Api(String basePath)
|
||||
public FakeClassnameTags123Api(string basePath)
|
||||
{
|
||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||
@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Gets the base path of the API client.
|
||||
/// </summary>
|
||||
/// <value>The base path</value>
|
||||
public String GetBasePath()
|
||||
public string GetBasePath()
|
||||
{
|
||||
return this.Configuration.BasePath;
|
||||
}
|
||||
@ -225,12 +225,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -243,7 +243,7 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
// authentication (api_key_query) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
{
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
||||
}
|
||||
@ -289,12 +289,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -308,7 +308,7 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
// authentication (api_key_query) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
{
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
||||
}
|
||||
|
@ -471,7 +471,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Initializes a new instance of the <see cref="PetApi"/> class.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public PetApi(String basePath)
|
||||
public PetApi(string basePath)
|
||||
{
|
||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||
@ -534,7 +534,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Gets the base path of the API client.
|
||||
/// </summary>
|
||||
/// <value>The base path</value>
|
||||
public String GetBasePath()
|
||||
public string GetBasePath()
|
||||
{
|
||||
return this.Configuration.BasePath;
|
||||
}
|
||||
@ -586,13 +586,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json",
|
||||
"application/xml"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -621,7 +621,7 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -666,13 +666,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json",
|
||||
"application/xml"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -702,7 +702,7 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -743,11 +743,11 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -764,7 +764,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -807,11 +807,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -829,7 +829,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -873,11 +873,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -908,7 +908,7 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -954,11 +954,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -990,7 +990,7 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -1034,11 +1034,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -1069,7 +1069,7 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -1115,11 +1115,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -1151,7 +1151,7 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -1191,11 +1191,11 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -1209,7 +1209,7 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
|
||||
// authentication (api_key) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
}
|
||||
@ -1251,11 +1251,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -1270,7 +1270,7 @@ namespace Org.OpenAPITools.Api
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
|
||||
// authentication (api_key) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
}
|
||||
@ -1313,13 +1313,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json",
|
||||
"application/xml"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -1348,7 +1348,7 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -1393,13 +1393,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json",
|
||||
"application/xml"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -1429,7 +1429,7 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -1472,12 +1472,12 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -1498,7 +1498,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -1543,12 +1543,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -1570,7 +1570,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -1614,12 +1614,12 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"multipart/form-data"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -1641,7 +1641,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -1687,12 +1687,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"multipart/form-data"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -1715,7 +1715,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -1763,12 +1763,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"multipart/form-data"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -1787,7 +1787,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
@ -1837,12 +1837,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"multipart/form-data"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -1862,7 +1862,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Initializes a new instance of the <see cref="StoreApi"/> class.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public StoreApi(String basePath)
|
||||
public StoreApi(string basePath)
|
||||
{
|
||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||
@ -297,7 +297,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Gets the base path of the API client.
|
||||
/// </summary>
|
||||
/// <value>The base path</value>
|
||||
public String GetBasePath()
|
||||
public string GetBasePath()
|
||||
{
|
||||
return this.Configuration.BasePath;
|
||||
}
|
||||
@ -349,11 +349,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -405,11 +405,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -455,11 +455,11 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -471,7 +471,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
}
|
||||
@ -511,11 +511,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@ -528,7 +528,7 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
}
|
||||
@ -568,11 +568,11 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -623,11 +623,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -681,12 +681,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -741,12 +741,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
@ -406,7 +406,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Initializes a new instance of the <see cref="UserApi"/> class.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public UserApi(String basePath)
|
||||
public UserApi(string basePath)
|
||||
{
|
||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||
@ -469,7 +469,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// Gets the base path of the API client.
|
||||
/// </summary>
|
||||
/// <value>The base path</value>
|
||||
public String GetBasePath()
|
||||
public string GetBasePath()
|
||||
{
|
||||
return this.Configuration.BasePath;
|
||||
}
|
||||
@ -521,12 +521,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -578,12 +578,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -634,12 +634,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -691,12 +691,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -747,12 +747,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -804,12 +804,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -860,11 +860,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -916,11 +916,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -972,11 +972,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -1031,11 +1031,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -1095,11 +1095,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -1161,11 +1161,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
@ -1213,11 +1213,11 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -1262,11 +1262,11 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
@ -1322,12 +1322,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
@ -1386,12 +1386,12 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
string[] _contentTypes = new string[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
|
@ -106,7 +106,7 @@ namespace Org.OpenAPITools.Client
|
||||
var bytes = response.RawBytes;
|
||||
if (response.Headers != null)
|
||||
{
|
||||
var filePath = String.IsNullOrEmpty(_configuration.TempFolderPath)
|
||||
var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath)
|
||||
? Path.GetTempPath()
|
||||
: _configuration.TempFolderPath;
|
||||
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
|
||||
@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Client
|
||||
return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind);
|
||||
}
|
||||
|
||||
if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
||||
if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
||||
{
|
||||
return Convert.ChangeType(response.Content, type);
|
||||
}
|
||||
@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// </summary>
|
||||
public partial class ApiClient : ISynchronousClient, IAsynchronousClient
|
||||
{
|
||||
private readonly String _baseUrl;
|
||||
private readonly string _baseUrl;
|
||||
|
||||
/// <summary>
|
||||
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// </summary>
|
||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||
/// <exception cref="ArgumentException"></exception>
|
||||
public ApiClient(String basePath)
|
||||
public ApiClient(string basePath)
|
||||
{
|
||||
if (string.IsNullOrEmpty(basePath))
|
||||
throw new ArgumentException("basePath cannot be empty");
|
||||
@ -268,7 +268,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <exception cref="ArgumentNullException"></exception>
|
||||
private RestRequest NewRequest(
|
||||
HttpMethod method,
|
||||
String path,
|
||||
string path,
|
||||
RequestOptions options,
|
||||
IReadableConfiguration configuration)
|
||||
{
|
||||
|
@ -44,7 +44,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <summary>
|
||||
/// Gets or sets any error text defined by the calling client.
|
||||
/// </summary>
|
||||
String ErrorText { get; set; }
|
||||
string ErrorText { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets any cookies passed along on the response.
|
||||
@ -85,7 +85,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <summary>
|
||||
/// Gets or sets any error text defined by the calling client.
|
||||
/// </summary>
|
||||
public String ErrorText { get; set; }
|
||||
public string ErrorText { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets any cookies passed along on the response.
|
||||
|
@ -124,7 +124,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// URL encode a string
|
||||
/// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50
|
||||
/// </summary>
|
||||
/// <param name="input">String to be URL encoded</param>
|
||||
/// <param name="input">string to be URL encoded</param>
|
||||
/// <returns>Byte array</returns>
|
||||
public static string UrlEncode(string input)
|
||||
{
|
||||
@ -158,7 +158,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <summary>
|
||||
/// Encode string in base64 format.
|
||||
/// </summary>
|
||||
/// <param name="text">String to be encoded.</param>
|
||||
/// <param name="text">string to be encoded.</param>
|
||||
/// <returns>Encoded string.</returns>
|
||||
public static string Base64Encode(string text)
|
||||
{
|
||||
@ -186,7 +186,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// </summary>
|
||||
/// <param name="contentTypes">The Content-Type array to select from.</param>
|
||||
/// <returns>The Content-Type header to use.</returns>
|
||||
public static String SelectHeaderContentType(String[] contentTypes)
|
||||
public static string SelectHeaderContentType(string[] contentTypes)
|
||||
{
|
||||
if (contentTypes.Length == 0)
|
||||
return null;
|
||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// </summary>
|
||||
/// <param name="accepts">The accepts array to select from.</param>
|
||||
/// <returns>The Accept header to use.</returns>
|
||||
public static String SelectHeaderAccept(String[] accepts)
|
||||
public static string SelectHeaderAccept(string[] accepts)
|
||||
{
|
||||
if (accepts.Length == 0)
|
||||
return null;
|
||||
@ -215,7 +215,7 @@ namespace Org.OpenAPITools.Client
|
||||
if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase))
|
||||
return "application/json";
|
||||
|
||||
return String.Join(",", accepts);
|
||||
return string.Join(",", accepts);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -233,9 +233,9 @@ namespace Org.OpenAPITools.Client
|
||||
/// </summary>
|
||||
/// <param name="mime">MIME</param>
|
||||
/// <returns>Returns True if MIME type is json.</returns>
|
||||
public static bool IsJsonMime(String mime)
|
||||
public static bool IsJsonMime(string mime)
|
||||
{
|
||||
if (String.IsNullOrWhiteSpace(mime)) return false;
|
||||
if (string.IsNullOrWhiteSpace(mime)) return false;
|
||||
|
||||
return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json");
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// Defines the base path of the target API server.
|
||||
/// Example: http://localhost:3000/v1/
|
||||
/// </summary>
|
||||
private String _basePath;
|
||||
private string _basePath;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the API key based on the authentication name.
|
||||
@ -511,9 +511,9 @@ namespace Org.OpenAPITools.Client
|
||||
/// <summary>
|
||||
/// Returns a string with essential information for debugging.
|
||||
/// </summary>
|
||||
public static String ToDebugReport()
|
||||
public static string ToDebugReport()
|
||||
{
|
||||
String report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
|
||||
string report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
|
||||
report += " OS: " + System.Environment.OSVersion + "\n";
|
||||
report += " .NET Framework Version: " + System.Environment.Version + "\n";
|
||||
report += " Version of the API: 1.0.0\n";
|
||||
|
@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
}
|
||||
|
||||
var httpValues = HttpUtility.ParseQueryString(String.Empty);
|
||||
var httpValues = HttpUtility.ParseQueryString(string.Empty);
|
||||
foreach (var parameter in requestOptions.QueryParameters)
|
||||
{
|
||||
#if (NETCOREAPP)
|
||||
@ -153,7 +153,7 @@ namespace Org.OpenAPITools.Client
|
||||
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
||||
|
||||
var dateTime = DateTime.Now;
|
||||
String Digest = String.Empty;
|
||||
string Digest = string.Empty;
|
||||
|
||||
//get the body
|
||||
string requestBody = string.Empty;
|
||||
@ -230,7 +230,7 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
}
|
||||
var headersKeysString = String.Join(" ", HttpSignatureHeader.Keys);
|
||||
var headersKeysString = string.Join(" ", HttpSignatureHeader.Keys);
|
||||
var headerValuesList = new List<string>();
|
||||
|
||||
foreach (var keyVal in HttpSignatureHeader)
|
||||
@ -411,10 +411,10 @@ namespace Org.OpenAPITools.Client
|
||||
return derBytes.ToArray();
|
||||
}
|
||||
|
||||
private RSACryptoServiceProvider GetRSAProviderFromPemFile(String pemfile, SecureString keyPassPharse = null)
|
||||
private RSACryptoServiceProvider GetRSAProviderFromPemFile(string pemfile, SecureString keyPassPharse = null)
|
||||
{
|
||||
const String pempubheader = "-----BEGIN PUBLIC KEY-----";
|
||||
const String pempubfooter = "-----END PUBLIC KEY-----";
|
||||
const string pempubheader = "-----BEGIN PUBLIC KEY-----";
|
||||
const string pempubfooter = "-----END PUBLIC KEY-----";
|
||||
bool isPrivateKeyFile = true;
|
||||
byte[] pemkey = null;
|
||||
|
||||
@ -441,11 +441,11 @@ namespace Org.OpenAPITools.Client
|
||||
return null;
|
||||
}
|
||||
|
||||
private byte[] ConvertPrivateKeyToBytes(String instr, SecureString keyPassPharse = null)
|
||||
private byte[] ConvertPrivateKeyToBytes(string instr, SecureString keyPassPharse = null)
|
||||
{
|
||||
const String pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
|
||||
const String pemprivfooter = "-----END RSA PRIVATE KEY-----";
|
||||
String pemstr = instr.Trim();
|
||||
const string pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
|
||||
const string pemprivfooter = "-----END RSA PRIVATE KEY-----";
|
||||
string pemstr = instr.Trim();
|
||||
byte[] binkey;
|
||||
|
||||
if (!pemstr.StartsWith(pemprivheader) || !pemstr.EndsWith(pemprivfooter))
|
||||
@ -456,7 +456,7 @@ namespace Org.OpenAPITools.Client
|
||||
StringBuilder sb = new StringBuilder(pemstr);
|
||||
sb.Replace(pemprivheader, "");
|
||||
sb.Replace(pemprivfooter, "");
|
||||
String pvkstr = sb.ToString().Trim();
|
||||
string pvkstr = sb.ToString().Trim();
|
||||
|
||||
try
|
||||
{ // if there are no PEM encryption info lines, this is an UNencrypted PEM private key
|
||||
@ -472,12 +472,12 @@ namespace Org.OpenAPITools.Client
|
||||
{
|
||||
return null;
|
||||
}
|
||||
String saltline = str.ReadLine();
|
||||
string saltline = str.ReadLine();
|
||||
if (!saltline.StartsWith("DEK-Info: DES-EDE3-CBC,"))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
String saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
|
||||
string saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
|
||||
byte[] salt = new byte[saltstr.Length / 2];
|
||||
for (int i = 0; i < salt.Length; i++)
|
||||
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
|
||||
@ -487,7 +487,7 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
//------ remaining b64 data is encrypted RSA key ----
|
||||
String encryptedstr = str.ReadToEnd();
|
||||
string encryptedstr = str.ReadToEnd();
|
||||
|
||||
try
|
||||
{ //should have b64 encrypted RSA key now
|
||||
|
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// Gets the base path of the API client.
|
||||
/// </summary>
|
||||
/// <value>The base path</value>
|
||||
String GetBasePath();
|
||||
string GetBasePath();
|
||||
|
||||
/// <summary>
|
||||
/// Provides a factory method hook for the creation of exceptions.
|
||||
|
@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
Task<ApiResponse<T>> GetAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
Task<ApiResponse<T>> GetAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Executes a non-blocking call to some <paramref name="path"/> using the POST http verb.
|
||||
@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
Task<ApiResponse<T>> PostAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
Task<ApiResponse<T>> PostAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Executes a non-blocking call to some <paramref name="path"/> using the PUT http verb.
|
||||
@ -51,7 +51,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
Task<ApiResponse<T>> PutAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
Task<ApiResponse<T>> PutAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Executes a non-blocking call to some <paramref name="path"/> using the DELETE http verb.
|
||||
@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
Task<ApiResponse<T>> DeleteAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
Task<ApiResponse<T>> DeleteAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Executes a non-blocking call to some <paramref name="path"/> using the HEAD http verb.
|
||||
@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
Task<ApiResponse<T>> HeadAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
Task<ApiResponse<T>> HeadAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Executes a non-blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
||||
@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
Task<ApiResponse<T>> OptionsAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
Task<ApiResponse<T>> OptionsAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Executes a non-blocking call to some <paramref name="path"/> using the PATCH http verb.
|
||||
@ -95,6 +95,6 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
Task<ApiResponse<T>> PatchAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
Task<ApiResponse<T>> PatchAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
}
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="configuration">Per-request configurable settings.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
ApiResponse<T> Get<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
ApiResponse<T> Get<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
|
||||
/// <summary>
|
||||
/// Executes a blocking call to some <paramref name="path"/> using the POST http verb.
|
||||
@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="configuration">Per-request configurable settings.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
ApiResponse<T> Post<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
ApiResponse<T> Post<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
|
||||
/// <summary>
|
||||
/// Executes a blocking call to some <paramref name="path"/> using the PUT http verb.
|
||||
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="configuration">Per-request configurable settings.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
ApiResponse<T> Put<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
ApiResponse<T> Put<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
|
||||
/// <summary>
|
||||
/// Executes a blocking call to some <paramref name="path"/> using the DELETE http verb.
|
||||
@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="configuration">Per-request configurable settings.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
ApiResponse<T> Delete<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
ApiResponse<T> Delete<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
|
||||
/// <summary>
|
||||
/// Executes a blocking call to some <paramref name="path"/> using the HEAD http verb.
|
||||
@ -68,7 +68,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="configuration">Per-request configurable settings.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
ApiResponse<T> Head<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
ApiResponse<T> Head<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
|
||||
/// <summary>
|
||||
/// Executes a blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
||||
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="configuration">Per-request configurable settings.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
ApiResponse<T> Options<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
ApiResponse<T> Options<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
|
||||
/// <summary>
|
||||
/// Executes a blocking call to some <paramref name="path"/> using the PATCH http verb.
|
||||
@ -88,6 +88,6 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="configuration">Per-request configurable settings.</param>
|
||||
/// <typeparam name="T">The return type.</typeparam>
|
||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||
ApiResponse<T> Patch<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
ApiResponse<T> Patch<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||
}
|
||||
}
|
||||
|
@ -24,29 +24,29 @@ namespace Org.OpenAPITools.Client
|
||||
/// <summary>
|
||||
/// Parameters to be bound to path parts of the Request's URL
|
||||
/// </summary>
|
||||
public Dictionary<String, String> PathParameters { get; set; }
|
||||
public Dictionary<string, string> PathParameters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Query parameters to be applied to the request.
|
||||
/// Keys may have 1 or more values associated.
|
||||
/// </summary>
|
||||
public Multimap<String, String> QueryParameters { get; set; }
|
||||
public Multimap<string, string> QueryParameters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Header parameters to be applied to to the request.
|
||||
/// Keys may have 1 or more values associated.
|
||||
/// </summary>
|
||||
public Multimap<String, String> HeaderParameters { get; set; }
|
||||
public Multimap<string, string> HeaderParameters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Form parameters to be sent along with the request.
|
||||
/// </summary>
|
||||
public Dictionary<String, String> FormParameters { get; set; }
|
||||
public Dictionary<string, string> FormParameters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// File parameters to be sent along with the request.
|
||||
/// </summary>
|
||||
public Dictionary<String, Stream> FileParameters { get; set; }
|
||||
public Dictionary<string, Stream> FileParameters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Cookies to be sent along with the request.
|
||||
@ -67,8 +67,8 @@ namespace Org.OpenAPITools.Client
|
||||
QueryParameters = new Multimap<string, string>();
|
||||
HeaderParameters = new Multimap<string, string>();
|
||||
FormParameters = new Dictionary<string, string>();
|
||||
FileParameters = new Dictionary<String, Stream>();
|
||||
FileParameters = new Dictionary<string, Stream>();
|
||||
Cookies = new List<Cookie>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -182,7 +182,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
if (match == 0)
|
||||
@ -257,7 +257,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="serializer">JSON Serializer</param>
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
{
|
||||
writer.WriteRawValue((String)(typeof(Fruit).GetMethod("ToJson").Invoke(value, null)));
|
||||
writer.WriteRawValue((string)(typeof(Fruit).GetMethod("ToJson").Invoke(value, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -171,7 +171,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into AppleReq: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into AppleReq: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -191,7 +191,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into BananaReq: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BananaReq: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
if (match == 0)
|
||||
@ -266,7 +266,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="serializer">JSON Serializer</param>
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
{
|
||||
writer.WriteRawValue((String)(typeof(FruitReq).GetMethod("ToJson").Invoke(value, null)));
|
||||
writer.WriteRawValue((string)(typeof(FruitReq).GetMethod("ToJson").Invoke(value, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -151,7 +151,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
// no match found, throw an exception
|
||||
@ -229,7 +229,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="serializer">JSON Serializer</param>
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
{
|
||||
writer.WriteRawValue((String)(typeof(GmFruit).GetMethod("ToJson").Invoke(value, null)));
|
||||
writer.WriteRawValue((string)(typeof(GmFruit).GetMethod("ToJson").Invoke(value, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -183,7 +183,7 @@ namespace Org.OpenAPITools.Model
|
||||
newMammal = new Mammal(JsonConvert.DeserializeObject<Zebra>(jsonString, Mammal.AdditionalPropertiesSerializerSettings));
|
||||
return newMammal;
|
||||
default:
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Mammal. Possible values: Pig whale zebra", discriminatorValue));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Mammal. Possible values: Pig whale zebra", discriminatorValue));
|
||||
break;
|
||||
}
|
||||
|
||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Pig: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Pig: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -227,7 +227,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Whale: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Whale: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -247,7 +247,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Zebra: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Zebra: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
if (match == 0)
|
||||
@ -322,7 +322,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="serializer">JSON Serializer</param>
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
{
|
||||
writer.WriteRawValue((String)(typeof(Mammal).GetMethod("ToJson").Invoke(value, null)));
|
||||
writer.WriteRawValue((string)(typeof(Mammal).GetMethod("ToJson").Invoke(value, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
|
||||
newNullableShape = new NullableShape(JsonConvert.DeserializeObject<Triangle>(jsonString, NullableShape.AdditionalPropertiesSerializerSettings));
|
||||
return newNullableShape;
|
||||
default:
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for NullableShape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for NullableShape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||
break;
|
||||
}
|
||||
|
||||
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
if (match == 0)
|
||||
@ -282,7 +282,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="serializer">JSON Serializer</param>
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
{
|
||||
writer.WriteRawValue((String)(typeof(NullableShape).GetMethod("ToJson").Invoke(value, null)));
|
||||
writer.WriteRawValue((string)(typeof(NullableShape).GetMethod("ToJson").Invoke(value, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
||||
newPig = new Pig(JsonConvert.DeserializeObject<DanishPig>(jsonString, Pig.AdditionalPropertiesSerializerSettings));
|
||||
return newPig;
|
||||
default:
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Pig. Possible values: BasquePig DanishPig", discriminatorValue));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Pig. Possible values: BasquePig DanishPig", discriminatorValue));
|
||||
break;
|
||||
}
|
||||
|
||||
@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into BasquePig: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BasquePig: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into DanishPig: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into DanishPig: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
if (match == 0)
|
||||
@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="serializer">JSON Serializer</param>
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
{
|
||||
writer.WriteRawValue((String)(typeof(Pig).GetMethod("ToJson").Invoke(value, null)));
|
||||
writer.WriteRawValue((string)(typeof(Pig).GetMethod("ToJson").Invoke(value, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
||||
newQuadrilateral = new Quadrilateral(JsonConvert.DeserializeObject<SimpleQuadrilateral>(jsonString, Quadrilateral.AdditionalPropertiesSerializerSettings));
|
||||
return newQuadrilateral;
|
||||
default:
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Quadrilateral. Possible values: ComplexQuadrilateral SimpleQuadrilateral", discriminatorValue));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Quadrilateral. Possible values: ComplexQuadrilateral SimpleQuadrilateral", discriminatorValue));
|
||||
break;
|
||||
}
|
||||
|
||||
@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into ComplexQuadrilateral: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ComplexQuadrilateral: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into SimpleQuadrilateral: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into SimpleQuadrilateral: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
if (match == 0)
|
||||
@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="serializer">JSON Serializer</param>
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
{
|
||||
writer.WriteRawValue((String)(typeof(Quadrilateral).GetMethod("ToJson").Invoke(value, null)));
|
||||
writer.WriteRawValue((string)(typeof(Quadrilateral).GetMethod("ToJson").Invoke(value, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
||||
newShape = new Shape(JsonConvert.DeserializeObject<Triangle>(jsonString, Shape.AdditionalPropertiesSerializerSettings));
|
||||
return newShape;
|
||||
default:
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Shape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Shape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||
break;
|
||||
}
|
||||
|
||||
@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
if (match == 0)
|
||||
@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="serializer">JSON Serializer</param>
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
{
|
||||
writer.WriteRawValue((String)(typeof(Shape).GetMethod("ToJson").Invoke(value, null)));
|
||||
writer.WriteRawValue((string)(typeof(Shape).GetMethod("ToJson").Invoke(value, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
|
||||
newShapeOrNull = new ShapeOrNull(JsonConvert.DeserializeObject<Triangle>(jsonString, ShapeOrNull.AdditionalPropertiesSerializerSettings));
|
||||
return newShapeOrNull;
|
||||
default:
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for ShapeOrNull. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for ShapeOrNull. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||
break;
|
||||
}
|
||||
|
||||
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
if (match == 0)
|
||||
@ -282,7 +282,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="serializer">JSON Serializer</param>
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
{
|
||||
writer.WriteRawValue((String)(typeof(ShapeOrNull).GetMethod("ToJson").Invoke(value, null)));
|
||||
writer.WriteRawValue((string)(typeof(ShapeOrNull).GetMethod("ToJson").Invoke(value, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -183,7 +183,7 @@ namespace Org.OpenAPITools.Model
|
||||
newTriangle = new Triangle(JsonConvert.DeserializeObject<ScaleneTriangle>(jsonString, Triangle.AdditionalPropertiesSerializerSettings));
|
||||
return newTriangle;
|
||||
default:
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Triangle. Possible values: EquilateralTriangle IsoscelesTriangle ScaleneTriangle", discriminatorValue));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Triangle. Possible values: EquilateralTriangle IsoscelesTriangle ScaleneTriangle", discriminatorValue));
|
||||
break;
|
||||
}
|
||||
|
||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into EquilateralTriangle: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into EquilateralTriangle: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -227,7 +227,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into IsoscelesTriangle: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into IsoscelesTriangle: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
try
|
||||
@ -247,7 +247,7 @@ namespace Org.OpenAPITools.Model
|
||||
catch (Exception exception)
|
||||
{
|
||||
// deserialization failed, try the next one
|
||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into ScaleneTriangle: {1}", jsonString, exception.ToString()));
|
||||
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ScaleneTriangle: {1}", jsonString, exception.ToString()));
|
||||
}
|
||||
|
||||
if (match == 0)
|
||||
@ -322,7 +322,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="serializer">JSON Serializer</param>
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
{
|
||||
writer.WriteRawValue((String)(typeof(Triangle).GetMethod("ToJson").Invoke(value, null)));
|
||||
writer.WriteRawValue((string)(typeof(Triangle).GetMethod("ToJson").Invoke(value, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user