mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 22:20:56 +00:00
Merge pull request #2541 from wing328/csharp_remove_trailing_whitespace
[C#] remove trailing spaces from C# API client
This commit is contained in:
commit
f66046c932
@ -63,7 +63,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <value>The default API client.</value>
|
/// <value>The default API client.</value>
|
||||||
[Obsolete("ApiClient.Default is deprecated, please use 'Configuration.Default.ApiClient' instead.")]
|
[Obsolete("ApiClient.Default is deprecated, please use 'Configuration.Default.ApiClient' instead.")]
|
||||||
public static ApiClient Default;
|
public static ApiClient Default;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the Configuration.
|
/// Gets or sets the Configuration.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -75,7 +75,7 @@ namespace {{packageName}}.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>An instance of the RestClient</value>
|
/// <value>An instance of the RestClient</value>
|
||||||
public RestClient RestClient { get; set; }
|
public RestClient RestClient { get; set; }
|
||||||
|
|
||||||
// Creates and sets up a RestRequest prior to a call.
|
// Creates and sets up a RestRequest prior to a call.
|
||||||
private RestRequest PrepareRequest(
|
private RestRequest PrepareRequest(
|
||||||
String path, RestSharp.Method method, Dictionary<String, String> queryParams, Object postBody,
|
String path, RestSharp.Method method, Dictionary<String, String> queryParams, Object postBody,
|
||||||
@ -87,7 +87,7 @@ namespace {{packageName}}.Client
|
|||||||
|
|
||||||
// add path parameter, if any
|
// add path parameter, if any
|
||||||
foreach(var param in pathParams)
|
foreach(var param in pathParams)
|
||||||
request.AddParameter(param.Key, param.Value, ParameterType.UrlSegment);
|
request.AddParameter(param.Key, param.Value, ParameterType.UrlSegment);
|
||||||
|
|
||||||
// add header parameter, if any
|
// add header parameter, if any
|
||||||
foreach(var param in headerParams)
|
foreach(var param in headerParams)
|
||||||
@ -116,7 +116,7 @@ namespace {{packageName}}.Client
|
|||||||
request.AddParameter(contentType, postBody, ParameterType.RequestBody);
|
request.AddParameter(contentType, postBody, ParameterType.RequestBody);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return request;
|
return request;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ namespace {{packageName}}.Client
|
|||||||
var response = await RestClient.ExecuteTaskAsync(request);
|
var response = await RestClient.ExecuteTaskAsync(request);
|
||||||
return (Object)response;
|
return (Object)response;
|
||||||
}{{/supportsAsync}}
|
}{{/supportsAsync}}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Escape string (url-encoded).
|
/// Escape string (url-encoded).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -187,7 +187,7 @@ namespace {{packageName}}.Client
|
|||||||
{
|
{
|
||||||
return UrlEncode(str);
|
return UrlEncode(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create FileParameter based on Stream.
|
/// Create FileParameter based on Stream.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -201,7 +201,7 @@ namespace {{packageName}}.Client
|
|||||||
else
|
else
|
||||||
return FileParameter.Create(name, ReadAsBytes(stream), "no_file_name_provided");
|
return FileParameter.Create(name, ReadAsBytes(stream), "no_file_name_provided");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime.
|
/// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime.
|
||||||
/// If parameter is a list, join the list with ",".
|
/// If parameter is a list, join the list with ",".
|
||||||
@ -222,7 +222,7 @@ namespace {{packageName}}.Client
|
|||||||
// Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o")
|
// Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o")
|
||||||
// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
|
// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
|
||||||
// For example: 2009-06-15T13:45:30.0000000
|
// For example: 2009-06-15T13:45:30.0000000
|
||||||
return ((DateTimeOffset)obj).ToString (Configuration.DateTimeFormat);
|
return ((DateTimeOffset)obj).ToString (Configuration.DateTimeFormat);
|
||||||
else if (obj is IList)
|
else if (obj is IList)
|
||||||
{
|
{
|
||||||
var flattenedString = new StringBuilder();
|
var flattenedString = new StringBuilder();
|
||||||
@ -237,7 +237,7 @@ namespace {{packageName}}.Client
|
|||||||
else
|
else
|
||||||
return Convert.ToString (obj);
|
return Convert.ToString (obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deserialize the JSON string into a proper object.
|
/// Deserialize the JSON string into a proper object.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -282,9 +282,9 @@ namespace {{packageName}}.Client
|
|||||||
|
|
||||||
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 ConvertType(response.Content, type);
|
return ConvertType(response.Content, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
// at this point, it must be a model (json)
|
// at this point, it must be a model (json)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -295,7 +295,7 @@ namespace {{packageName}}.Client
|
|||||||
throw new ApiException(500, e.Message);
|
throw new ApiException(500, e.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Serialize an input (model) into JSON string
|
/// Serialize an input (model) into JSON string
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -312,7 +312,7 @@ namespace {{packageName}}.Client
|
|||||||
throw new ApiException(500, e.Message);
|
throw new ApiException(500, e.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Select the Content-Type header's value from the given content-type array:
|
/// Select the Content-Type header's value from the given content-type array:
|
||||||
/// if JSON exists in the given array, use it;
|
/// if JSON exists in the given array, use it;
|
||||||
@ -348,7 +348,7 @@ namespace {{packageName}}.Client
|
|||||||
|
|
||||||
return String.Join(",", accepts);
|
return String.Join(",", accepts);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Encode string in base64 format.
|
/// Encode string in base64 format.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -358,7 +358,7 @@ namespace {{packageName}}.Client
|
|||||||
{
|
{
|
||||||
return System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text));
|
return System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dynamically cast the object into target type.
|
/// Dynamically cast the object into target type.
|
||||||
/// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast
|
/// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast
|
||||||
|
@ -12,18 +12,18 @@ namespace {{packageName}}.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The error code (HTTP status code).</value>
|
/// <value>The error code (HTTP status code).</value>
|
||||||
public int ErrorCode { get; set; }
|
public int ErrorCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the error content (body json object)
|
/// Gets or sets the error content (body json object)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The error content (Http response body).</value>
|
/// <value>The error content (Http response body).</value>
|
||||||
public {{#supportsAsync}}dynamic{{/supportsAsync}}{{^supportsAsync}}object{{/supportsAsync}} ErrorContent { get; private set; }
|
public {{#supportsAsync}}dynamic{{/supportsAsync}}{{^supportsAsync}}object{{/supportsAsync}} ErrorContent { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ApiException() {}
|
public ApiException() {}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -33,7 +33,7 @@ namespace {{packageName}}.Client
|
|||||||
{
|
{
|
||||||
this.ErrorCode = errorCode;
|
this.ErrorCode = errorCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -46,5 +46,5 @@ namespace {{packageName}}.Client
|
|||||||
this.ErrorContent = errorContent;
|
this.ErrorContent = errorContent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -13,19 +13,19 @@ namespace {{packageName}}.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The status code.</value>
|
/// <value>The status code.</value>
|
||||||
public int StatusCode { get; private set; }
|
public int StatusCode { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the HTTP headers
|
/// Gets or sets the HTTP headers
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>HTTP headers</value>
|
/// <value>HTTP headers</value>
|
||||||
public IDictionary<string, string> Headers { get; private set; }
|
public IDictionary<string, string> Headers { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the data (parsed HTTP body)
|
/// Gets or sets the data (parsed HTTP body)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The data.</value>
|
/// <value>The data.</value>
|
||||||
public T Data { get; private set; }
|
public T Data { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ApiResponse<T>" /> class.
|
/// Initializes a new instance of the <see cref="ApiResponse<T>" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -38,7 +38,7 @@ namespace {{packageName}}.Client
|
|||||||
this.Headers = headers;
|
this.Headers = headers;
|
||||||
this.Data = data;
|
this.Data = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ namespace {{packageName}}.Client
|
|||||||
{
|
{
|
||||||
get { return ApiClient.RestClient.Timeout; }
|
get { return ApiClient.RestClient.Timeout; }
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (ApiClient != null)
|
if (ApiClient != null)
|
||||||
ApiClient.RestClient.Timeout = value;
|
ApiClient.RestClient.Timeout = value;
|
||||||
@ -220,7 +220,7 @@ namespace {{packageName}}.Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create the directory if it does not exist
|
// create the directory if it does not exist
|
||||||
if (!Directory.Exists(value))
|
if (!Directory.Exists(value))
|
||||||
Directory.CreateDirectory(value);
|
Directory.CreateDirectory(value);
|
||||||
|
|
||||||
// check if the path contains directory separator at the end
|
// check if the path contains directory separator at the end
|
||||||
|
@ -28,7 +28,7 @@ namespace {{packageName}}.Api
|
|||||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
||||||
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
|
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
|
||||||
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// {{summary}}
|
/// {{summary}}
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -69,7 +69,7 @@ namespace {{packageName}}.Api
|
|||||||
#endregion Asynchronous Operations
|
#endregion Asynchronous Operations
|
||||||
{{/supportsAsync}}
|
{{/supportsAsync}}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a collection of functions to interact with the API endpoints
|
/// Represents a collection of functions to interact with the API endpoints
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -89,7 +89,7 @@ namespace {{packageName}}.Api
|
|||||||
this.Configuration.ApiClient.Configuration = this.Configuration;
|
this.Configuration.ApiClient.Configuration = this.Configuration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="{{classname}}"/> class
|
/// Initializes a new instance of the <see cref="{{classname}}"/> class
|
||||||
/// using Configuration object
|
/// using Configuration object
|
||||||
@ -99,7 +99,7 @@ namespace {{packageName}}.Api
|
|||||||
public {{classname}}(Configuration configuration = null)
|
public {{classname}}(Configuration configuration = null)
|
||||||
{
|
{
|
||||||
if (configuration == null) // use the default one in Configuration
|
if (configuration == null) // use the default one in Configuration
|
||||||
this.Configuration = Configuration.Default;
|
this.Configuration = Configuration.Default;
|
||||||
else
|
else
|
||||||
this.Configuration = configuration;
|
this.Configuration = configuration;
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ namespace {{packageName}}.Api
|
|||||||
{
|
{
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the configuration object
|
/// Gets or sets the configuration object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -156,13 +156,13 @@ namespace {{packageName}}.Api
|
|||||||
{
|
{
|
||||||
this.Configuration.AddDefaultHeader(key, value);
|
this.Configuration.AddDefaultHeader(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
{{#operation}}
|
{{#operation}}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// {{summary}} {{notes}}
|
/// {{summary}} {{notes}}
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
||||||
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
|
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
|
||||||
public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
||||||
{
|
{
|
||||||
@ -174,7 +174,7 @@ namespace {{packageName}}.Api
|
|||||||
/// {{summary}} {{notes}}
|
/// {{summary}} {{notes}}
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
||||||
{{/allParams}}/// <returns>ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}</returns>
|
{{/allParams}}/// <returns>ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}</returns>
|
||||||
public ApiResponse<{{#returnType}} {{{returnType}}} {{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
public ApiResponse<{{#returnType}} {{{returnType}}} {{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
||||||
{
|
{
|
||||||
@ -183,9 +183,9 @@ namespace {{packageName}}.Api
|
|||||||
if ({{paramName}} == null)
|
if ({{paramName}} == null)
|
||||||
throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{classname}}->{{operationId}}");
|
throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{classname}}->{{operationId}}");
|
||||||
{{/required}}{{/allParams}}
|
{{/required}}{{/allParams}}
|
||||||
|
|
||||||
var localVarPath = "{{path}}";
|
var localVarPath = "{{path}}";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -248,19 +248,19 @@ namespace {{packageName}}.Api
|
|||||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||||
}{{/isOAuth}}
|
}{{/isOAuth}}
|
||||||
{{/authMethods}}
|
{{/authMethods}}
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||||
Method.{{httpMethod}}, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.{{httpMethod}}, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling {{operationId}}: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling {{operationId}}: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling {{operationId}}: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
throw new ApiException (localVarStatusCode, "Error calling {{operationId}}: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
||||||
|
|
||||||
{{#returnType}}return new ApiResponse<{{{returnType}}}>(localVarStatusCode,
|
{{#returnType}}return new ApiResponse<{{{returnType}}}>(localVarStatusCode,
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||||
({{{returnType}}}) Configuration.ApiClient.Deserialize(localVarResponse, typeof({{#returnContainer}}{{{returnContainer}}}{{/returnContainer}}{{^returnContainer}}{{{returnType}}}{{/returnContainer}})));{{/returnType}}
|
({{{returnType}}}) Configuration.ApiClient.Deserialize(localVarResponse, typeof({{#returnContainer}}{{{returnContainer}}}{{/returnContainer}}{{^returnContainer}}{{{returnType}}}{{/returnContainer}})));{{/returnType}}
|
||||||
@ -294,9 +294,9 @@ namespace {{packageName}}.Api
|
|||||||
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set
|
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set
|
||||||
if ({{paramName}} == null) throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{operationId}}");
|
if ({{paramName}} == null) throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{operationId}}");
|
||||||
{{/required}}{{/allParams}}
|
{{/required}}{{/allParams}}
|
||||||
|
|
||||||
var localVarPath = "{{path}}";
|
var localVarPath = "{{path}}";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -362,12 +362,12 @@ namespace {{packageName}}.Api
|
|||||||
{{/authMethods}}
|
{{/authMethods}}
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||||
Method.{{httpMethod}}, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.{{httpMethod}}, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling {{operationId}}: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling {{operationId}}: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
|
@ -64,7 +64,7 @@ namespace {{packageName}}.Test
|
|||||||
{{#allParams}}{{{dataType}}} {{paramName}} = null; // TODO: replace null with proper value
|
{{#allParams}}{{{dataType}}} {{paramName}} = null; // TODO: replace null with proper value
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
{{#returnType}}var response = {{/returnType}}instance.{{operationId}}({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
{{#returnType}}var response = {{/returnType}}instance.{{operationId}}({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||||
{{#returnType}}Assert.IsInstanceOf<{{{returnType}}}> (response, "response is {{{returnType}}}");{{/returnType}}
|
{{#returnType}}Assert.IsInstanceOf<{{{returnType}}}> (response, "response is {{{returnType}}}");{{/returnType}}
|
||||||
}
|
}
|
||||||
{{/operation}}{{/operations}}
|
{{/operation}}{{/operations}}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
{{#supportsAsync}}SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319{{/supportsAsync}}
|
{{#supportsAsync}}SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319{{/supportsAsync}}
|
||||||
{{^supportsAsync}}SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v3.5{{/supportsAsync}}
|
{{^supportsAsync}}SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v3.5{{/supportsAsync}}
|
||||||
|
|
||||||
if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://nuget.org/nuget.exe', '.\nuget.exe')"
|
if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://nuget.org/nuget.exe', '.\nuget.exe')"
|
||||||
.\nuget.exe install vendor/packages.config -o vendor
|
.\nuget.exe install vendor/packages.config -o vendor
|
||||||
|
|
||||||
if not exist ".\bin" mkdir bin
|
if not exist ".\bin" mkdir bin
|
||||||
|
|
||||||
copy vendor\Newtonsoft.Json.8.0.2\lib\{{targetFrameworkNuget}}\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll
|
copy vendor\Newtonsoft.Json.8.0.2\lib\{{targetFrameworkNuget}}\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll
|
||||||
copy vendor\RestSharp.105.1.0\lib\{{targetFrameworkNuget}}\RestSharp.dll bin\RestSharp.dll
|
copy vendor\RestSharp.105.1.0\lib\{{targetFrameworkNuget}}\RestSharp.dll bin\RestSharp.dll
|
||||||
|
|
||||||
%CSCPATH%\csc /reference:bin\Newtonsoft.Json.dll;bin\RestSharp.dll /target:library /out:bin\{{packageName}}.dll /recurse:src\*.cs /doc:bin\{{packageName}}.xml
|
%CSCPATH%\csc /reference:bin\Newtonsoft.Json.dll;bin\RestSharp.dll /target:library /out:bin\{{packageName}}.dll /recurse:src\*.cs /doc:bin\{{packageName}}.xml
|
||||||
|
@ -28,7 +28,7 @@ git init
|
|||||||
# Adds the files in the local repository and stages them for commit.
|
# Adds the files in the local repository and stages them for commit.
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||||
git commit -m "$release_note"
|
git commit -m "$release_note"
|
||||||
|
|
||||||
# Sets the new remote
|
# Sets the new remote
|
||||||
|
@ -146,7 +146,7 @@ UpgradeLog*.htm
|
|||||||
*.txt~
|
*.txt~
|
||||||
*.swp
|
*.swp
|
||||||
*.swo
|
*.swo
|
||||||
|
|
||||||
# svn
|
# svn
|
||||||
.svn
|
.svn
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ namespace {{packageName}}.Model
|
|||||||
[DataContract]
|
[DataContract]
|
||||||
public partial class {{classname}} : {{#parent}}{{{parent}}}, {{/parent}} IEquatable<{{classname}}>
|
public partial class {{classname}} : {{#parent}}{{{parent}}}, {{/parent}} IEquatable<{{classname}}>
|
||||||
{ {{#vars}}{{#isEnum}}
|
{ {{#vars}}{{#isEnum}}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{{description}}}{{/description}}
|
/// {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{{description}}}{{/description}}
|
||||||
/// </summary>{{#description}}
|
/// </summary>{{#description}}
|
||||||
@ -64,7 +64,7 @@ namespace {{packageName}}.Model
|
|||||||
{{/defaultValue}}{{^defaultValue}}this.{{name}} = {{name}};
|
{{/defaultValue}}{{^defaultValue}}this.{{name}} = {{name}};
|
||||||
{{/defaultValue}}{{/required}}{{/isReadOnly}}{{/vars}}
|
{{/defaultValue}}{{/required}}{{/isReadOnly}}{{/vars}}
|
||||||
}
|
}
|
||||||
|
|
||||||
{{#vars}}{{^isEnum}}
|
{{#vars}}{{^isEnum}}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{description}}{{/description}}
|
/// {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{description}}{{/description}}
|
||||||
@ -86,7 +86,7 @@ namespace {{packageName}}.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -33,7 +33,7 @@ namespace {{packageName}}.Test
|
|||||||
{
|
{
|
||||||
instance = new {{classname}}();
|
instance = new {{classname}}();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -41,7 +41,7 @@ namespace {{packageName}}.Test
|
|||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of {{classname}}
|
/// Test an instance of {{classname}}
|
||||||
@ -54,12 +54,12 @@ namespace {{packageName}}.Test
|
|||||||
|
|
||||||
{{#vars}}
|
{{#vars}}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property '{{name}}'
|
/// Test the property '{{name}}'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void {{name}}Test()
|
public void {{name}}Test()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property '{{name}}'
|
// TODO: unit test for the property '{{name}}'
|
||||||
}
|
}
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
instance = new Category();
|
instance = new Category();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,7 +39,7 @@ namespace IO.Swagger.Test
|
|||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of Category
|
/// Test an instance of Category
|
||||||
@ -50,25 +50,22 @@ namespace IO.Swagger.Test
|
|||||||
Assert.IsInstanceOf<Category> (instance, "instance is a Category");
|
Assert.IsInstanceOf<Category> (instance, "instance is a Category");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Id'
|
/// Test the property 'Id'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void IdTest()
|
public void IdTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Id'
|
// TODO: unit test for the property 'Id'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Name'
|
/// Test the property 'Name'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void NameTest()
|
public void NameTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Name'
|
// TODO: unit test for the property 'Name'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
instance = new InlineResponse200();
|
instance = new InlineResponse200();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,7 +39,7 @@ namespace IO.Swagger.Test
|
|||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of InlineResponse200
|
/// Test an instance of InlineResponse200
|
||||||
@ -50,61 +50,54 @@ namespace IO.Swagger.Test
|
|||||||
Assert.IsInstanceOf<InlineResponse200> (instance, "instance is a InlineResponse200");
|
Assert.IsInstanceOf<InlineResponse200> (instance, "instance is a InlineResponse200");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Tags'
|
/// Test the property 'Tags'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void TagsTest()
|
public void TagsTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Tags'
|
// TODO: unit test for the property 'Tags'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Id'
|
/// Test the property 'Id'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void IdTest()
|
public void IdTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Id'
|
// TODO: unit test for the property 'Id'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Category'
|
/// Test the property 'Category'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void CategoryTest()
|
public void CategoryTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Category'
|
// TODO: unit test for the property 'Category'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Status'
|
/// Test the property 'Status'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void StatusTest()
|
public void StatusTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Status'
|
// TODO: unit test for the property 'Status'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Name'
|
/// Test the property 'Name'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void NameTest()
|
public void NameTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Name'
|
// TODO: unit test for the property 'Name'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'PhotoUrls'
|
/// Test the property 'PhotoUrls'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PhotoUrlsTest()
|
public void PhotoUrlsTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'PhotoUrls'
|
// TODO: unit test for the property 'PhotoUrls'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
instance = new Model200Response();
|
instance = new Model200Response();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,7 +39,7 @@ namespace IO.Swagger.Test
|
|||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of Model200Response
|
/// Test an instance of Model200Response
|
||||||
@ -50,16 +50,14 @@ namespace IO.Swagger.Test
|
|||||||
Assert.IsInstanceOf<Model200Response> (instance, "instance is a Model200Response");
|
Assert.IsInstanceOf<Model200Response> (instance, "instance is a Model200Response");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Name'
|
/// Test the property 'Name'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void NameTest()
|
public void NameTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Name'
|
// TODO: unit test for the property 'Name'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
instance = new ModelReturn();
|
instance = new ModelReturn();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,7 +39,7 @@ namespace IO.Swagger.Test
|
|||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of ModelReturn
|
/// Test an instance of ModelReturn
|
||||||
@ -50,16 +50,14 @@ namespace IO.Swagger.Test
|
|||||||
Assert.IsInstanceOf<ModelReturn> (instance, "instance is a ModelReturn");
|
Assert.IsInstanceOf<ModelReturn> (instance, "instance is a ModelReturn");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property '_Return'
|
/// Test the property '_Return'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void _ReturnTest()
|
public void _ReturnTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property '_Return'
|
// TODO: unit test for the property '_Return'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
instance = new Name();
|
instance = new Name();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,7 +39,7 @@ namespace IO.Swagger.Test
|
|||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of Name
|
/// Test an instance of Name
|
||||||
@ -50,25 +50,22 @@ namespace IO.Swagger.Test
|
|||||||
Assert.IsInstanceOf<Name> (instance, "instance is a Name");
|
Assert.IsInstanceOf<Name> (instance, "instance is a Name");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property '_Name'
|
/// Test the property '_Name'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void _NameTest()
|
public void _NameTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property '_Name'
|
// TODO: unit test for the property '_Name'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'SnakeCase'
|
/// Test the property 'SnakeCase'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void SnakeCaseTest()
|
public void SnakeCaseTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'SnakeCase'
|
// TODO: unit test for the property 'SnakeCase'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
instance = new Order();
|
instance = new Order();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,7 +39,7 @@ namespace IO.Swagger.Test
|
|||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of Order
|
/// Test an instance of Order
|
||||||
@ -50,61 +50,54 @@ namespace IO.Swagger.Test
|
|||||||
Assert.IsInstanceOf<Order> (instance, "instance is a Order");
|
Assert.IsInstanceOf<Order> (instance, "instance is a Order");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Id'
|
/// Test the property 'Id'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void IdTest()
|
public void IdTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Id'
|
// TODO: unit test for the property 'Id'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'PetId'
|
/// Test the property 'PetId'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PetIdTest()
|
public void PetIdTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'PetId'
|
// TODO: unit test for the property 'PetId'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Quantity'
|
/// Test the property 'Quantity'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void QuantityTest()
|
public void QuantityTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Quantity'
|
// TODO: unit test for the property 'Quantity'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'ShipDate'
|
/// Test the property 'ShipDate'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void ShipDateTest()
|
public void ShipDateTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'ShipDate'
|
// TODO: unit test for the property 'ShipDate'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Status'
|
/// Test the property 'Status'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void StatusTest()
|
public void StatusTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Status'
|
// TODO: unit test for the property 'Status'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Complete'
|
/// Test the property 'Complete'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void CompleteTest()
|
public void CompleteTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Complete'
|
// TODO: unit test for the property 'Complete'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,9 +61,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'AddPet'
|
// TODO: add unit test for the method 'AddPet'
|
||||||
Pet body = null; // TODO: replace null with proper value
|
Pet body = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.AddPet(body);
|
instance.AddPet(body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -74,9 +73,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'AddPetUsingByteArray'
|
// TODO: add unit test for the method 'AddPetUsingByteArray'
|
||||||
byte[] body = null; // TODO: replace null with proper value
|
byte[] body = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.AddPetUsingByteArray(body);
|
instance.AddPetUsingByteArray(body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -87,10 +85,9 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'DeletePet'
|
// TODO: add unit test for the method 'DeletePet'
|
||||||
long? petId = null; // TODO: replace null with proper value
|
long? petId = null; // TODO: replace null with proper value
|
||||||
string apiKey = null; // TODO: replace null with proper value
|
string apiKey = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.DeletePet(petId, apiKey);
|
instance.DeletePet(petId, apiKey);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -101,9 +98,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'FindPetsByStatus'
|
// TODO: add unit test for the method 'FindPetsByStatus'
|
||||||
List<string> status = null; // TODO: replace null with proper value
|
List<string> status = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
var response = instance.FindPetsByStatus(status);
|
var response = instance.FindPetsByStatus(status);
|
||||||
Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
|
Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -114,9 +110,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'FindPetsByTags'
|
// TODO: add unit test for the method 'FindPetsByTags'
|
||||||
List<string> tags = null; // TODO: replace null with proper value
|
List<string> tags = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
var response = instance.FindPetsByTags(tags);
|
var response = instance.FindPetsByTags(tags);
|
||||||
Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
|
Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -127,9 +122,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'GetPetById'
|
// TODO: add unit test for the method 'GetPetById'
|
||||||
long? petId = null; // TODO: replace null with proper value
|
long? petId = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
var response = instance.GetPetById(petId);
|
var response = instance.GetPetById(petId);
|
||||||
Assert.IsInstanceOf<Pet> (response, "response is Pet");
|
Assert.IsInstanceOf<Pet> (response, "response is Pet");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -140,9 +134,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'GetPetByIdInObject'
|
// TODO: add unit test for the method 'GetPetByIdInObject'
|
||||||
long? petId = null; // TODO: replace null with proper value
|
long? petId = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
var response = instance.GetPetByIdInObject(petId);
|
var response = instance.GetPetByIdInObject(petId);
|
||||||
Assert.IsInstanceOf<InlineResponse200> (response, "response is InlineResponse200");
|
Assert.IsInstanceOf<InlineResponse200> (response, "response is InlineResponse200");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -153,9 +146,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'PetPetIdtestingByteArraytrueGet'
|
// TODO: add unit test for the method 'PetPetIdtestingByteArraytrueGet'
|
||||||
long? petId = null; // TODO: replace null with proper value
|
long? petId = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
var response = instance.PetPetIdtestingByteArraytrueGet(petId);
|
var response = instance.PetPetIdtestingByteArraytrueGet(petId);
|
||||||
Assert.IsInstanceOf<byte[]> (response, "response is byte[]");
|
Assert.IsInstanceOf<byte[]> (response, "response is byte[]");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -166,9 +158,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'UpdatePet'
|
// TODO: add unit test for the method 'UpdatePet'
|
||||||
Pet body = null; // TODO: replace null with proper value
|
Pet body = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.UpdatePet(body);
|
instance.UpdatePet(body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -179,11 +170,10 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'UpdatePetWithForm'
|
// TODO: add unit test for the method 'UpdatePetWithForm'
|
||||||
string petId = null; // TODO: replace null with proper value
|
string petId = null; // TODO: replace null with proper value
|
||||||
string name = null; // TODO: replace null with proper value
|
string name = null; // TODO: replace null with proper value
|
||||||
string status = null; // TODO: replace null with proper value
|
string status = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.UpdatePetWithForm(petId, name, status);
|
instance.UpdatePetWithForm(petId, name, status);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -194,11 +184,10 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'UploadFile'
|
// TODO: add unit test for the method 'UploadFile'
|
||||||
long? petId = null; // TODO: replace null with proper value
|
long? petId = null; // TODO: replace null with proper value
|
||||||
string additionalMetadata = null; // TODO: replace null with proper value
|
string additionalMetadata = null; // TODO: replace null with proper value
|
||||||
Stream file = null; // TODO: replace null with proper value
|
Stream file = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.UploadFile(petId, additionalMetadata, file);
|
instance.UploadFile(petId, additionalMetadata, file);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
instance = new Pet();
|
instance = new Pet();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,7 +39,7 @@ namespace IO.Swagger.Test
|
|||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of Pet
|
/// Test an instance of Pet
|
||||||
@ -50,61 +50,54 @@ namespace IO.Swagger.Test
|
|||||||
Assert.IsInstanceOf<Pet> (instance, "instance is a Pet");
|
Assert.IsInstanceOf<Pet> (instance, "instance is a Pet");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Id'
|
/// Test the property 'Id'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void IdTest()
|
public void IdTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Id'
|
// TODO: unit test for the property 'Id'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Category'
|
/// Test the property 'Category'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void CategoryTest()
|
public void CategoryTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Category'
|
// TODO: unit test for the property 'Category'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Name'
|
/// Test the property 'Name'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void NameTest()
|
public void NameTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Name'
|
// TODO: unit test for the property 'Name'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'PhotoUrls'
|
/// Test the property 'PhotoUrls'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PhotoUrlsTest()
|
public void PhotoUrlsTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'PhotoUrls'
|
// TODO: unit test for the property 'PhotoUrls'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Tags'
|
/// Test the property 'Tags'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void TagsTest()
|
public void TagsTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Tags'
|
// TODO: unit test for the property 'Tags'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Status'
|
/// Test the property 'Status'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void StatusTest()
|
public void StatusTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Status'
|
// TODO: unit test for the property 'Status'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
instance = new SpecialModelName();
|
instance = new SpecialModelName();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,7 +39,7 @@ namespace IO.Swagger.Test
|
|||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of SpecialModelName
|
/// Test an instance of SpecialModelName
|
||||||
@ -50,16 +50,14 @@ namespace IO.Swagger.Test
|
|||||||
Assert.IsInstanceOf<SpecialModelName> (instance, "instance is a SpecialModelName");
|
Assert.IsInstanceOf<SpecialModelName> (instance, "instance is a SpecialModelName");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'SpecialPropertyName'
|
/// Test the property 'SpecialPropertyName'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void SpecialPropertyNameTest()
|
public void SpecialPropertyNameTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'SpecialPropertyName'
|
// TODO: unit test for the property 'SpecialPropertyName'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,9 +61,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'DeleteOrder'
|
// TODO: add unit test for the method 'DeleteOrder'
|
||||||
string orderId = null; // TODO: replace null with proper value
|
string orderId = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.DeleteOrder(orderId);
|
instance.DeleteOrder(orderId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -74,9 +73,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'FindOrdersByStatus'
|
// TODO: add unit test for the method 'FindOrdersByStatus'
|
||||||
string status = null; // TODO: replace null with proper value
|
string status = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
var response = instance.FindOrdersByStatus(status);
|
var response = instance.FindOrdersByStatus(status);
|
||||||
Assert.IsInstanceOf<List<Order>> (response, "response is List<Order>");
|
Assert.IsInstanceOf<List<Order>> (response, "response is List<Order>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -86,9 +84,8 @@ namespace IO.Swagger.Test
|
|||||||
public void GetInventoryTest()
|
public void GetInventoryTest()
|
||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'GetInventory'
|
// TODO: add unit test for the method 'GetInventory'
|
||||||
|
var response = instance.GetInventory();
|
||||||
var response = instance.GetInventory();
|
Assert.IsInstanceOf<Dictionary<string, int?>> (response, "response is Dictionary<string, int?>");
|
||||||
Assert.IsInstanceOf<Dictionary<string, int?>> (response, "response is Dictionary<string, int?>");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -98,9 +95,8 @@ namespace IO.Swagger.Test
|
|||||||
public void GetInventoryInObjectTest()
|
public void GetInventoryInObjectTest()
|
||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'GetInventoryInObject'
|
// TODO: add unit test for the method 'GetInventoryInObject'
|
||||||
|
var response = instance.GetInventoryInObject();
|
||||||
var response = instance.GetInventoryInObject();
|
Assert.IsInstanceOf<Object> (response, "response is Object");
|
||||||
Assert.IsInstanceOf<Object> (response, "response is Object");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -111,9 +107,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'GetOrderById'
|
// TODO: add unit test for the method 'GetOrderById'
|
||||||
string orderId = null; // TODO: replace null with proper value
|
string orderId = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
var response = instance.GetOrderById(orderId);
|
var response = instance.GetOrderById(orderId);
|
||||||
Assert.IsInstanceOf<Order> (response, "response is Order");
|
Assert.IsInstanceOf<Order> (response, "response is Order");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -124,9 +119,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'PlaceOrder'
|
// TODO: add unit test for the method 'PlaceOrder'
|
||||||
Order body = null; // TODO: replace null with proper value
|
Order body = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
var response = instance.PlaceOrder(body);
|
var response = instance.PlaceOrder(body);
|
||||||
Assert.IsInstanceOf<Order> (response, "response is Order");
|
Assert.IsInstanceOf<Order> (response, "response is Order");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
instance = new Tag();
|
instance = new Tag();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,7 +39,7 @@ namespace IO.Swagger.Test
|
|||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of Tag
|
/// Test an instance of Tag
|
||||||
@ -50,25 +50,22 @@ namespace IO.Swagger.Test
|
|||||||
Assert.IsInstanceOf<Tag> (instance, "instance is a Tag");
|
Assert.IsInstanceOf<Tag> (instance, "instance is a Tag");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Id'
|
/// Test the property 'Id'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void IdTest()
|
public void IdTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Id'
|
// TODO: unit test for the property 'Id'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Name'
|
/// Test the property 'Name'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void NameTest()
|
public void NameTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Name'
|
// TODO: unit test for the property 'Name'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,9 +61,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'CreateUser'
|
// TODO: add unit test for the method 'CreateUser'
|
||||||
User body = null; // TODO: replace null with proper value
|
User body = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.CreateUser(body);
|
instance.CreateUser(body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -74,9 +73,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'CreateUsersWithArrayInput'
|
// TODO: add unit test for the method 'CreateUsersWithArrayInput'
|
||||||
List<User> body = null; // TODO: replace null with proper value
|
List<User> body = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.CreateUsersWithArrayInput(body);
|
instance.CreateUsersWithArrayInput(body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -87,9 +85,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'CreateUsersWithListInput'
|
// TODO: add unit test for the method 'CreateUsersWithListInput'
|
||||||
List<User> body = null; // TODO: replace null with proper value
|
List<User> body = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.CreateUsersWithListInput(body);
|
instance.CreateUsersWithListInput(body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -100,9 +97,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'DeleteUser'
|
// TODO: add unit test for the method 'DeleteUser'
|
||||||
string username = null; // TODO: replace null with proper value
|
string username = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.DeleteUser(username);
|
instance.DeleteUser(username);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -113,9 +109,8 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'GetUserByName'
|
// TODO: add unit test for the method 'GetUserByName'
|
||||||
string username = null; // TODO: replace null with proper value
|
string username = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
var response = instance.GetUserByName(username);
|
var response = instance.GetUserByName(username);
|
||||||
Assert.IsInstanceOf<User> (response, "response is User");
|
Assert.IsInstanceOf<User> (response, "response is User");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -126,10 +121,9 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'LoginUser'
|
// TODO: add unit test for the method 'LoginUser'
|
||||||
string username = null; // TODO: replace null with proper value
|
string username = null; // TODO: replace null with proper value
|
||||||
string password = null; // TODO: replace null with proper value
|
string password = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
var response = instance.LoginUser(username, password);
|
var response = instance.LoginUser(username, password);
|
||||||
Assert.IsInstanceOf<string> (response, "response is string");
|
Assert.IsInstanceOf<string> (response, "response is string");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -139,9 +133,8 @@ namespace IO.Swagger.Test
|
|||||||
public void LogoutUserTest()
|
public void LogoutUserTest()
|
||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'LogoutUser'
|
// TODO: add unit test for the method 'LogoutUser'
|
||||||
|
instance.LogoutUser();
|
||||||
|
|
||||||
instance.LogoutUser();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -152,10 +145,9 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: add unit test for the method 'UpdateUser'
|
// TODO: add unit test for the method 'UpdateUser'
|
||||||
string username = null; // TODO: replace null with proper value
|
string username = null; // TODO: replace null with proper value
|
||||||
User body = null; // TODO: replace null with proper value
|
User body = null; // TODO: replace null with proper value
|
||||||
|
|
||||||
instance.UpdateUser(username, body);
|
instance.UpdateUser(username, body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
instance = new User();
|
instance = new User();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,7 +39,7 @@ namespace IO.Swagger.Test
|
|||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of User
|
/// Test an instance of User
|
||||||
@ -50,79 +50,70 @@ namespace IO.Swagger.Test
|
|||||||
Assert.IsInstanceOf<User> (instance, "instance is a User");
|
Assert.IsInstanceOf<User> (instance, "instance is a User");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Id'
|
/// Test the property 'Id'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void IdTest()
|
public void IdTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Id'
|
// TODO: unit test for the property 'Id'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Username'
|
/// Test the property 'Username'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void UsernameTest()
|
public void UsernameTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Username'
|
// TODO: unit test for the property 'Username'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'FirstName'
|
/// Test the property 'FirstName'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void FirstNameTest()
|
public void FirstNameTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'FirstName'
|
// TODO: unit test for the property 'FirstName'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'LastName'
|
/// Test the property 'LastName'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void LastNameTest()
|
public void LastNameTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'LastName'
|
// TODO: unit test for the property 'LastName'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Email'
|
/// Test the property 'Email'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void EmailTest()
|
public void EmailTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Email'
|
// TODO: unit test for the property 'Email'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Password'
|
/// Test the property 'Password'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PasswordTest()
|
public void PasswordTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Password'
|
// TODO: unit test for the property 'Password'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'Phone'
|
/// Test the property 'Phone'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PhoneTest()
|
public void PhoneTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'Phone'
|
// TODO: unit test for the property 'Phone'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'UserStatus'
|
/// Test the property 'UserStatus'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void UserStatusTest()
|
public void UserStatusTest()
|
||||||
{
|
{
|
||||||
// TODO: unit test for the property 'UserStatus'
|
// TODO: unit test for the property 'UserStatus'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ UpgradeLog*.htm
|
|||||||
*.txt~
|
*.txt~
|
||||||
*.swp
|
*.swp
|
||||||
*.swo
|
*.swo
|
||||||
|
|
||||||
# svn
|
# svn
|
||||||
.svn
|
.svn
|
||||||
|
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319
|
SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319
|
||||||
|
|
||||||
|
|
||||||
if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://nuget.org/nuget.exe', '.\nuget.exe')"
|
if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://nuget.org/nuget.exe', '.\nuget.exe')"
|
||||||
.\nuget.exe install vendor/packages.config -o vendor
|
.\nuget.exe install vendor/packages.config -o vendor
|
||||||
|
|
||||||
if not exist ".\bin" mkdir bin
|
if not exist ".\bin" mkdir bin
|
||||||
|
|
||||||
copy vendor\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll
|
copy vendor\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll
|
||||||
copy vendor\RestSharp.105.1.0\lib\net45\RestSharp.dll bin\RestSharp.dll
|
copy vendor\RestSharp.105.1.0\lib\net45\RestSharp.dll bin\RestSharp.dll
|
||||||
|
|
||||||
%CSCPATH%\csc /reference:bin\Newtonsoft.Json.dll;bin\RestSharp.dll /target:library /out:bin\IO.Swagger.dll /recurse:src\*.cs /doc:bin\IO.Swagger.xml
|
%CSCPATH%\csc /reference:bin\Newtonsoft.Json.dll;bin\RestSharp.dll /target:library /out:bin\IO.Swagger.dll /recurse:src\*.cs /doc:bin\IO.Swagger.xml
|
||||||
|
@ -28,7 +28,7 @@ git init
|
|||||||
# Adds the files in the local repository and stages them for commit.
|
# Adds the files in the local repository and stages them for commit.
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||||
git commit -m "$release_note"
|
git commit -m "$release_note"
|
||||||
|
|
||||||
# Sets the new remote
|
# Sets the new remote
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -9,14 +9,12 @@ using IO.Swagger.Model;
|
|||||||
|
|
||||||
namespace IO.Swagger.Api
|
namespace IO.Swagger.Api
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a collection of functions to interact with the API endpoints
|
/// Represents a collection of functions to interact with the API endpoints
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IStoreApi
|
public interface IStoreApi
|
||||||
{
|
{
|
||||||
#region Synchronous Operations
|
#region Synchronous Operations
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete purchase order by ID
|
/// Delete purchase order by ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -27,7 +25,7 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
void DeleteOrder (string orderId);
|
void DeleteOrder (string orderId);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete purchase order by ID
|
/// Delete purchase order by ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -38,7 +36,6 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
||||||
/// <returns>ApiResponse of Object(void)</returns>
|
/// <returns>ApiResponse of Object(void)</returns>
|
||||||
ApiResponse<Object> DeleteOrderWithHttpInfo (string orderId);
|
ApiResponse<Object> DeleteOrderWithHttpInfo (string orderId);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Finds orders by status
|
/// Finds orders by status
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -49,7 +46,7 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
||||||
/// <returns>List<Order></returns>
|
/// <returns>List<Order></returns>
|
||||||
List<Order> FindOrdersByStatus (string status = null);
|
List<Order> FindOrdersByStatus (string status = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Finds orders by status
|
/// Finds orders by status
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -60,7 +57,6 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
||||||
/// <returns>ApiResponse of List<Order></returns>
|
/// <returns>ApiResponse of List<Order></returns>
|
||||||
ApiResponse<List<Order>> FindOrdersByStatusWithHttpInfo (string status = null);
|
ApiResponse<List<Order>> FindOrdersByStatusWithHttpInfo (string status = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns pet inventories by status
|
/// Returns pet inventories by status
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -70,7 +66,7 @@ namespace IO.Swagger.Api
|
|||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <returns>Dictionary<string, int?></returns>
|
/// <returns>Dictionary<string, int?></returns>
|
||||||
Dictionary<string, int?> GetInventory ();
|
Dictionary<string, int?> GetInventory ();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns pet inventories by status
|
/// Returns pet inventories by status
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -80,7 +76,6 @@ namespace IO.Swagger.Api
|
|||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <returns>ApiResponse of Dictionary<string, int?></returns>
|
/// <returns>ApiResponse of Dictionary<string, int?></returns>
|
||||||
ApiResponse<Dictionary<string, int?>> GetInventoryWithHttpInfo ();
|
ApiResponse<Dictionary<string, int?>> GetInventoryWithHttpInfo ();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fake endpoint to test arbitrary object return by 'Get inventory'
|
/// Fake endpoint to test arbitrary object return by 'Get inventory'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -90,7 +85,7 @@ namespace IO.Swagger.Api
|
|||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <returns>Object</returns>
|
/// <returns>Object</returns>
|
||||||
Object GetInventoryInObject ();
|
Object GetInventoryInObject ();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fake endpoint to test arbitrary object return by 'Get inventory'
|
/// Fake endpoint to test arbitrary object return by 'Get inventory'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -100,29 +95,27 @@ namespace IO.Swagger.Api
|
|||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <returns>ApiResponse of Object</returns>
|
/// <returns>ApiResponse of Object</returns>
|
||||||
ApiResponse<Object> GetInventoryInObjectWithHttpInfo ();
|
ApiResponse<Object> GetInventoryInObjectWithHttpInfo ();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Find purchase order by ID
|
/// Find purchase order by ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||||
/// <returns>Order</returns>
|
/// <returns>Order</returns>
|
||||||
Order GetOrderById (string orderId);
|
Order GetOrderById (string orderId);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Find purchase order by ID
|
/// Find purchase order by ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||||
/// <returns>ApiResponse of Order</returns>
|
/// <returns>ApiResponse of Order</returns>
|
||||||
ApiResponse<Order> GetOrderByIdWithHttpInfo (string orderId);
|
ApiResponse<Order> GetOrderByIdWithHttpInfo (string orderId);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -133,7 +126,7 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
||||||
/// <returns>Order</returns>
|
/// <returns>Order</returns>
|
||||||
Order PlaceOrder (Order body = null);
|
Order PlaceOrder (Order body = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -144,11 +137,8 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
||||||
/// <returns>ApiResponse of Order</returns>
|
/// <returns>ApiResponse of Order</returns>
|
||||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order body = null);
|
ApiResponse<Order> PlaceOrderWithHttpInfo (Order body = null);
|
||||||
|
|
||||||
#endregion Synchronous Operations
|
#endregion Synchronous Operations
|
||||||
|
|
||||||
#region Asynchronous Operations
|
#region Asynchronous Operations
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete purchase order by ID
|
/// Delete purchase order by ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -170,7 +160,6 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <returns>Task of ApiResponse</returns>
|
||||||
System.Threading.Tasks.Task<ApiResponse<Object>> DeleteOrderAsyncWithHttpInfo (string orderId);
|
System.Threading.Tasks.Task<ApiResponse<Object>> DeleteOrderAsyncWithHttpInfo (string orderId);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Finds orders by status
|
/// Finds orders by status
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -192,7 +181,6 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
||||||
/// <returns>Task of ApiResponse (List<Order>)</returns>
|
/// <returns>Task of ApiResponse (List<Order>)</returns>
|
||||||
System.Threading.Tasks.Task<ApiResponse<List<Order>>> FindOrdersByStatusAsyncWithHttpInfo (string status = null);
|
System.Threading.Tasks.Task<ApiResponse<List<Order>>> FindOrdersByStatusAsyncWithHttpInfo (string status = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns pet inventories by status
|
/// Returns pet inventories by status
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -212,7 +200,6 @@ namespace IO.Swagger.Api
|
|||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <returns>Task of ApiResponse (Dictionary<string, int?>)</returns>
|
/// <returns>Task of ApiResponse (Dictionary<string, int?>)</returns>
|
||||||
System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int?>>> GetInventoryAsyncWithHttpInfo ();
|
System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int?>>> GetInventoryAsyncWithHttpInfo ();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fake endpoint to test arbitrary object return by 'Get inventory'
|
/// Fake endpoint to test arbitrary object return by 'Get inventory'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -232,12 +219,11 @@ namespace IO.Swagger.Api
|
|||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <returns>Task of ApiResponse (Object)</returns>
|
/// <returns>Task of ApiResponse (Object)</returns>
|
||||||
System.Threading.Tasks.Task<ApiResponse<Object>> GetInventoryInObjectAsyncWithHttpInfo ();
|
System.Threading.Tasks.Task<ApiResponse<Object>> GetInventoryInObjectAsyncWithHttpInfo ();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Find purchase order by ID
|
/// Find purchase order by ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||||
@ -248,13 +234,12 @@ namespace IO.Swagger.Api
|
|||||||
/// Find purchase order by ID
|
/// Find purchase order by ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||||
/// <returns>Task of ApiResponse (Order)</returns>
|
/// <returns>Task of ApiResponse (Order)</returns>
|
||||||
System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (string orderId);
|
System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (string orderId);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -276,11 +261,9 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
||||||
/// <returns>Task of ApiResponse (Order)</returns>
|
/// <returns>Task of ApiResponse (Order)</returns>
|
||||||
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body = null);
|
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body = null);
|
||||||
|
|
||||||
#endregion Asynchronous Operations
|
#endregion Asynchronous Operations
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a collection of functions to interact with the API endpoints
|
/// Represents a collection of functions to interact with the API endpoints
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -300,7 +283,7 @@ namespace IO.Swagger.Api
|
|||||||
this.Configuration.ApiClient.Configuration = this.Configuration;
|
this.Configuration.ApiClient.Configuration = this.Configuration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="StoreApi"/> class
|
/// Initializes a new instance of the <see cref="StoreApi"/> class
|
||||||
/// using Configuration object
|
/// using Configuration object
|
||||||
@ -310,7 +293,7 @@ namespace IO.Swagger.Api
|
|||||||
public StoreApi(Configuration configuration = null)
|
public StoreApi(Configuration configuration = null)
|
||||||
{
|
{
|
||||||
if (configuration == null) // use the default one in Configuration
|
if (configuration == null) // use the default one in Configuration
|
||||||
this.Configuration = Configuration.Default;
|
this.Configuration = Configuration.Default;
|
||||||
else
|
else
|
||||||
this.Configuration = configuration;
|
this.Configuration = configuration;
|
||||||
|
|
||||||
@ -339,7 +322,7 @@ namespace IO.Swagger.Api
|
|||||||
{
|
{
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the configuration object
|
/// Gets or sets the configuration object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -367,13 +350,12 @@ namespace IO.Swagger.Api
|
|||||||
{
|
{
|
||||||
this.Configuration.AddDefaultHeader(key, value);
|
this.Configuration.AddDefaultHeader(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public void DeleteOrder (string orderId)
|
public void DeleteOrder (string orderId)
|
||||||
{
|
{
|
||||||
@ -384,7 +366,7 @@ namespace IO.Swagger.Api
|
|||||||
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
||||||
/// <returns>ApiResponse of Object(void)</returns>
|
/// <returns>ApiResponse of Object(void)</returns>
|
||||||
public ApiResponse<Object> DeleteOrderWithHttpInfo (string orderId)
|
public ApiResponse<Object> DeleteOrderWithHttpInfo (string orderId)
|
||||||
{
|
{
|
||||||
@ -393,9 +375,9 @@ namespace IO.Swagger.Api
|
|||||||
if (orderId == null)
|
if (orderId == null)
|
||||||
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
|
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/order/{orderId}";
|
var localVarPath = "/store/order/{orderId}";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -421,33 +403,27 @@ namespace IO.Swagger.Api
|
|||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
|
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||||
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling DeleteOrder: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling DeleteOrder: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling DeleteOrder: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
throw new ApiException (localVarStatusCode, "Error calling DeleteOrder: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
||||||
|
|
||||||
|
|
||||||
return new ApiResponse<Object>(localVarStatusCode,
|
return new ApiResponse<Object>(localVarStatusCode,
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||||
null);
|
null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -471,9 +447,9 @@ namespace IO.Swagger.Api
|
|||||||
// verify the required parameter 'orderId' is set
|
// verify the required parameter 'orderId' is set
|
||||||
if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling DeleteOrder");
|
if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling DeleteOrder");
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/order/{orderId}";
|
var localVarPath = "/store/order/{orderId}";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -499,21 +475,16 @@ namespace IO.Swagger.Api
|
|||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
|
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||||
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling DeleteOrder: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling DeleteOrder: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
@ -524,12 +495,11 @@ namespace IO.Swagger.Api
|
|||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||||
null);
|
null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Finds orders by status A single status value can be provided as a string
|
/// Finds orders by status A single status value can be provided as a string
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
||||||
/// <returns>List<Order></returns>
|
/// <returns>List<Order></returns>
|
||||||
public List<Order> FindOrdersByStatus (string status = null)
|
public List<Order> FindOrdersByStatus (string status = null)
|
||||||
{
|
{
|
||||||
@ -541,14 +511,14 @@ namespace IO.Swagger.Api
|
|||||||
/// Finds orders by status A single status value can be provided as a string
|
/// Finds orders by status A single status value can be provided as a string
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
||||||
/// <returns>ApiResponse of List<Order></returns>
|
/// <returns>ApiResponse of List<Order></returns>
|
||||||
public ApiResponse< List<Order> > FindOrdersByStatusWithHttpInfo (string status = null)
|
public ApiResponse< List<Order> > FindOrdersByStatusWithHttpInfo (string status = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/findByStatus";
|
var localVarPath = "/store/findByStatus";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -573,12 +543,8 @@ namespace IO.Swagger.Api
|
|||||||
// set "format" to json by default
|
// set "format" to json by default
|
||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
|
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
|
||||||
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// authentication (test_api_client_id) required
|
// authentication (test_api_client_id) required
|
||||||
|
|
||||||
@ -586,33 +552,31 @@ namespace IO.Swagger.Api
|
|||||||
{
|
{
|
||||||
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
||||||
}
|
}
|
||||||
// authentication (test_api_client_secret) required
|
// authentication (test_api_client_secret) required
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
||||||
{
|
{
|
||||||
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling FindOrdersByStatus: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling FindOrdersByStatus: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling FindOrdersByStatus: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
throw new ApiException (localVarStatusCode, "Error calling FindOrdersByStatus: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
||||||
|
|
||||||
return new ApiResponse<List<Order>>(localVarStatusCode,
|
return new ApiResponse<List<Order>>(localVarStatusCode,
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||||
(List<Order>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Order>)));
|
(List<Order>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Order>)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Finds orders by status A single status value can be provided as a string
|
/// Finds orders by status A single status value can be provided as a string
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -635,9 +599,9 @@ namespace IO.Swagger.Api
|
|||||||
public async System.Threading.Tasks.Task<ApiResponse<List<Order>>> FindOrdersByStatusAsyncWithHttpInfo (string status = null)
|
public async System.Threading.Tasks.Task<ApiResponse<List<Order>>> FindOrdersByStatusAsyncWithHttpInfo (string status = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/findByStatus";
|
var localVarPath = "/store/findByStatus";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -662,36 +626,29 @@ namespace IO.Swagger.Api
|
|||||||
// set "format" to json by default
|
// set "format" to json by default
|
||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
|
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
|
||||||
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// authentication (test_api_client_id) required
|
// authentication (test_api_client_id) required
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
|
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
|
||||||
{
|
{
|
||||||
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
||||||
}
|
}
|
||||||
|
|
||||||
// authentication (test_api_client_secret) required
|
// authentication (test_api_client_secret) required
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
||||||
{
|
{
|
||||||
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling FindOrdersByStatus: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling FindOrdersByStatus: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
@ -702,7 +659,6 @@ namespace IO.Swagger.Api
|
|||||||
(List<Order>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Order>)));
|
(List<Order>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Order>)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns pet inventories by status Returns a map of status codes to quantities
|
/// Returns pet inventories by status Returns a map of status codes to quantities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -722,9 +678,9 @@ namespace IO.Swagger.Api
|
|||||||
public ApiResponse< Dictionary<string, int?> > GetInventoryWithHttpInfo ()
|
public ApiResponse< Dictionary<string, int?> > GetInventoryWithHttpInfo ()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/inventory";
|
var localVarPath = "/store/inventory";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -749,11 +705,7 @@ namespace IO.Swagger.Api
|
|||||||
// set "format" to json by default
|
// set "format" to json by default
|
||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
|
|
||||||
@ -761,27 +713,25 @@ namespace IO.Swagger.Api
|
|||||||
{
|
{
|
||||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling GetInventory: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling GetInventory: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling GetInventory: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
throw new ApiException (localVarStatusCode, "Error calling GetInventory: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
||||||
|
|
||||||
return new ApiResponse<Dictionary<string, int?>>(localVarStatusCode,
|
return new ApiResponse<Dictionary<string, int?>>(localVarStatusCode,
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||||
(Dictionary<string, int?>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int?>)));
|
(Dictionary<string, int?>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int?>)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns pet inventories by status Returns a map of status codes to quantities
|
/// Returns pet inventories by status Returns a map of status codes to quantities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -802,9 +752,9 @@ namespace IO.Swagger.Api
|
|||||||
public async System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int?>>> GetInventoryAsyncWithHttpInfo ()
|
public async System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int?>>> GetInventoryAsyncWithHttpInfo ()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/inventory";
|
var localVarPath = "/store/inventory";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -829,28 +779,22 @@ namespace IO.Swagger.Api
|
|||||||
// set "format" to json by default
|
// set "format" to json by default
|
||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling GetInventory: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling GetInventory: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
@ -861,7 +805,6 @@ namespace IO.Swagger.Api
|
|||||||
(Dictionary<string, int?>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int?>)));
|
(Dictionary<string, int?>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int?>)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fake endpoint to test arbitrary object return by 'Get inventory' Returns an arbitrary object which is actually a map of status codes to quantities
|
/// Fake endpoint to test arbitrary object return by 'Get inventory' Returns an arbitrary object which is actually a map of status codes to quantities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -881,9 +824,9 @@ namespace IO.Swagger.Api
|
|||||||
public ApiResponse< Object > GetInventoryInObjectWithHttpInfo ()
|
public ApiResponse< Object > GetInventoryInObjectWithHttpInfo ()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/inventory?response=arbitrary_object";
|
var localVarPath = "/store/inventory?response=arbitrary_object";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -908,11 +851,7 @@ namespace IO.Swagger.Api
|
|||||||
// set "format" to json by default
|
// set "format" to json by default
|
||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
|
|
||||||
@ -920,27 +859,25 @@ namespace IO.Swagger.Api
|
|||||||
{
|
{
|
||||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling GetInventoryInObject: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling GetInventoryInObject: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling GetInventoryInObject: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
throw new ApiException (localVarStatusCode, "Error calling GetInventoryInObject: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
||||||
|
|
||||||
return new ApiResponse<Object>(localVarStatusCode,
|
return new ApiResponse<Object>(localVarStatusCode,
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||||
(Object) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object)));
|
(Object) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fake endpoint to test arbitrary object return by 'Get inventory' Returns an arbitrary object which is actually a map of status codes to quantities
|
/// Fake endpoint to test arbitrary object return by 'Get inventory' Returns an arbitrary object which is actually a map of status codes to quantities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -961,9 +898,9 @@ namespace IO.Swagger.Api
|
|||||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> GetInventoryInObjectAsyncWithHttpInfo ()
|
public async System.Threading.Tasks.Task<ApiResponse<Object>> GetInventoryInObjectAsyncWithHttpInfo ()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/inventory?response=arbitrary_object";
|
var localVarPath = "/store/inventory?response=arbitrary_object";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -988,28 +925,22 @@ namespace IO.Swagger.Api
|
|||||||
// set "format" to json by default
|
// set "format" to json by default
|
||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling GetInventoryInObject: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling GetInventoryInObject: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
@ -1020,12 +951,11 @@ namespace IO.Swagger.Api
|
|||||||
(Object) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object)));
|
(Object) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||||
/// <returns>Order</returns>
|
/// <returns>Order</returns>
|
||||||
public Order GetOrderById (string orderId)
|
public Order GetOrderById (string orderId)
|
||||||
{
|
{
|
||||||
@ -1034,10 +964,10 @@ namespace IO.Swagger.Api
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||||
/// <returns>ApiResponse of Order</returns>
|
/// <returns>ApiResponse of Order</returns>
|
||||||
public ApiResponse< Order > GetOrderByIdWithHttpInfo (string orderId)
|
public ApiResponse< Order > GetOrderByIdWithHttpInfo (string orderId)
|
||||||
{
|
{
|
||||||
@ -1046,9 +976,9 @@ namespace IO.Swagger.Api
|
|||||||
if (orderId == null)
|
if (orderId == null)
|
||||||
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById");
|
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById");
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/order/{orderId}";
|
var localVarPath = "/store/order/{orderId}";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -1074,11 +1004,7 @@ namespace IO.Swagger.Api
|
|||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
|
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// authentication (test_api_key_header) required
|
// authentication (test_api_key_header) required
|
||||||
|
|
||||||
@ -1086,35 +1012,33 @@ namespace IO.Swagger.Api
|
|||||||
{
|
{
|
||||||
localVarHeaderParams["test_api_key_header"] = Configuration.GetApiKeyWithPrefix("test_api_key_header");
|
localVarHeaderParams["test_api_key_header"] = Configuration.GetApiKeyWithPrefix("test_api_key_header");
|
||||||
}
|
}
|
||||||
// authentication (test_api_key_query) required
|
// authentication (test_api_key_query) required
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_query")))
|
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_query")))
|
||||||
{
|
{
|
||||||
localVarQueryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query");
|
localVarQueryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling GetOrderById: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling GetOrderById: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling GetOrderById: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
throw new ApiException (localVarStatusCode, "Error calling GetOrderById: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
||||||
|
|
||||||
return new ApiResponse<Order>(localVarStatusCode,
|
return new ApiResponse<Order>(localVarStatusCode,
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||||
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
|
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||||
@ -1127,7 +1051,7 @@ namespace IO.Swagger.Api
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||||
@ -1137,9 +1061,9 @@ namespace IO.Swagger.Api
|
|||||||
// verify the required parameter 'orderId' is set
|
// verify the required parameter 'orderId' is set
|
||||||
if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling GetOrderById");
|
if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling GetOrderById");
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/order/{orderId}";
|
var localVarPath = "/store/order/{orderId}";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -1165,35 +1089,28 @@ namespace IO.Swagger.Api
|
|||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
|
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// authentication (test_api_key_header) required
|
// authentication (test_api_key_header) required
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_header")))
|
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_header")))
|
||||||
{
|
{
|
||||||
localVarHeaderParams["test_api_key_header"] = Configuration.GetApiKeyWithPrefix("test_api_key_header");
|
localVarHeaderParams["test_api_key_header"] = Configuration.GetApiKeyWithPrefix("test_api_key_header");
|
||||||
}
|
}
|
||||||
|
|
||||||
// authentication (test_api_key_query) required
|
// authentication (test_api_key_query) required
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_query")))
|
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_query")))
|
||||||
{
|
{
|
||||||
localVarQueryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query");
|
localVarQueryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling GetOrderById: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling GetOrderById: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
@ -1204,12 +1121,11 @@ namespace IO.Swagger.Api
|
|||||||
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
|
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
||||||
/// <returns>Order</returns>
|
/// <returns>Order</returns>
|
||||||
public Order PlaceOrder (Order body = null)
|
public Order PlaceOrder (Order body = null)
|
||||||
{
|
{
|
||||||
@ -1221,14 +1137,14 @@ namespace IO.Swagger.Api
|
|||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||||
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
||||||
/// <returns>ApiResponse of Order</returns>
|
/// <returns>ApiResponse of Order</returns>
|
||||||
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body = null)
|
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/order";
|
var localVarPath = "/store/order";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -1253,11 +1169,7 @@ namespace IO.Swagger.Api
|
|||||||
// set "format" to json by default
|
// set "format" to json by default
|
||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
|
if (body.GetType() != typeof(byte[]))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (body.GetType() != typeof(byte[]))
|
|
||||||
{
|
{
|
||||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||||
}
|
}
|
||||||
@ -1272,33 +1184,31 @@ namespace IO.Swagger.Api
|
|||||||
{
|
{
|
||||||
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
||||||
}
|
}
|
||||||
// authentication (test_api_client_secret) required
|
// authentication (test_api_client_secret) required
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
||||||
{
|
{
|
||||||
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling PlaceOrder: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling PlaceOrder: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling PlaceOrder: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
throw new ApiException (localVarStatusCode, "Error calling PlaceOrder: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
|
||||||
|
|
||||||
return new ApiResponse<Order>(localVarStatusCode,
|
return new ApiResponse<Order>(localVarStatusCode,
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||||
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
|
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -1321,9 +1231,9 @@ namespace IO.Swagger.Api
|
|||||||
public async System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body = null)
|
public async System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var localVarPath = "/store/order";
|
var localVarPath = "/store/order";
|
||||||
|
|
||||||
var localVarPathParams = new Dictionary<String, String>();
|
var localVarPathParams = new Dictionary<String, String>();
|
||||||
var localVarQueryParams = new Dictionary<String, String>();
|
var localVarQueryParams = new Dictionary<String, String>();
|
||||||
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
|
||||||
@ -1348,11 +1258,7 @@ namespace IO.Swagger.Api
|
|||||||
// set "format" to json by default
|
// set "format" to json by default
|
||||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||||
localVarPathParams.Add("format", "json");
|
localVarPathParams.Add("format", "json");
|
||||||
|
if (body.GetType() != typeof(byte[]))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (body.GetType() != typeof(byte[]))
|
|
||||||
{
|
{
|
||||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||||
}
|
}
|
||||||
@ -1361,29 +1267,26 @@ namespace IO.Swagger.Api
|
|||||||
localVarPostBody = body; // byte array
|
localVarPostBody = body; // byte array
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// authentication (test_api_client_id) required
|
// authentication (test_api_client_id) required
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
|
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
|
||||||
{
|
{
|
||||||
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
||||||
}
|
}
|
||||||
|
|
||||||
// authentication (test_api_client_secret) required
|
// authentication (test_api_client_secret) required
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
||||||
{
|
{
|
||||||
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||||
localVarPathParams, localVarHttpContentType);
|
localVarPathParams, localVarHttpContentType);
|
||||||
|
|
||||||
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
int localVarStatusCode = (int) localVarResponse.StatusCode;
|
||||||
|
|
||||||
if (localVarStatusCode >= 400)
|
if (localVarStatusCode >= 400)
|
||||||
throw new ApiException (localVarStatusCode, "Error calling PlaceOrder: " + localVarResponse.Content, localVarResponse.Content);
|
throw new ApiException (localVarStatusCode, "Error calling PlaceOrder: " + localVarResponse.Content, localVarResponse.Content);
|
||||||
else if (localVarStatusCode == 0)
|
else if (localVarStatusCode == 0)
|
||||||
@ -1394,7 +1297,5 @@ namespace IO.Swagger.Api
|
|||||||
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
|
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -63,7 +63,7 @@ namespace IO.Swagger.Client
|
|||||||
/// <value>The default API client.</value>
|
/// <value>The default API client.</value>
|
||||||
[Obsolete("ApiClient.Default is deprecated, please use 'Configuration.Default.ApiClient' instead.")]
|
[Obsolete("ApiClient.Default is deprecated, please use 'Configuration.Default.ApiClient' instead.")]
|
||||||
public static ApiClient Default;
|
public static ApiClient Default;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the Configuration.
|
/// Gets or sets the Configuration.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -75,7 +75,7 @@ namespace IO.Swagger.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>An instance of the RestClient</value>
|
/// <value>An instance of the RestClient</value>
|
||||||
public RestClient RestClient { get; set; }
|
public RestClient RestClient { get; set; }
|
||||||
|
|
||||||
// Creates and sets up a RestRequest prior to a call.
|
// Creates and sets up a RestRequest prior to a call.
|
||||||
private RestRequest PrepareRequest(
|
private RestRequest PrepareRequest(
|
||||||
String path, RestSharp.Method method, Dictionary<String, String> queryParams, Object postBody,
|
String path, RestSharp.Method method, Dictionary<String, String> queryParams, Object postBody,
|
||||||
@ -87,7 +87,7 @@ namespace IO.Swagger.Client
|
|||||||
|
|
||||||
// add path parameter, if any
|
// add path parameter, if any
|
||||||
foreach(var param in pathParams)
|
foreach(var param in pathParams)
|
||||||
request.AddParameter(param.Key, param.Value, ParameterType.UrlSegment);
|
request.AddParameter(param.Key, param.Value, ParameterType.UrlSegment);
|
||||||
|
|
||||||
// add header parameter, if any
|
// add header parameter, if any
|
||||||
foreach(var param in headerParams)
|
foreach(var param in headerParams)
|
||||||
@ -116,7 +116,7 @@ namespace IO.Swagger.Client
|
|||||||
request.AddParameter(contentType, postBody, ParameterType.RequestBody);
|
request.AddParameter(contentType, postBody, ParameterType.RequestBody);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return request;
|
return request;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,7 +151,6 @@ namespace IO.Swagger.Client
|
|||||||
var response = RestClient.Execute(request);
|
var response = RestClient.Execute(request);
|
||||||
return (Object) response;
|
return (Object) response;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Makes the asynchronous HTTP request.
|
/// Makes the asynchronous HTTP request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -177,7 +176,7 @@ namespace IO.Swagger.Client
|
|||||||
var response = await RestClient.ExecuteTaskAsync(request);
|
var response = await RestClient.ExecuteTaskAsync(request);
|
||||||
return (Object)response;
|
return (Object)response;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Escape string (url-encoded).
|
/// Escape string (url-encoded).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -187,7 +186,7 @@ namespace IO.Swagger.Client
|
|||||||
{
|
{
|
||||||
return UrlEncode(str);
|
return UrlEncode(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create FileParameter based on Stream.
|
/// Create FileParameter based on Stream.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -201,7 +200,7 @@ namespace IO.Swagger.Client
|
|||||||
else
|
else
|
||||||
return FileParameter.Create(name, ReadAsBytes(stream), "no_file_name_provided");
|
return FileParameter.Create(name, ReadAsBytes(stream), "no_file_name_provided");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime.
|
/// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime.
|
||||||
/// If parameter is a list, join the list with ",".
|
/// If parameter is a list, join the list with ",".
|
||||||
@ -222,7 +221,7 @@ namespace IO.Swagger.Client
|
|||||||
// Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o")
|
// Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o")
|
||||||
// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
|
// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
|
||||||
// For example: 2009-06-15T13:45:30.0000000
|
// For example: 2009-06-15T13:45:30.0000000
|
||||||
return ((DateTimeOffset)obj).ToString (Configuration.DateTimeFormat);
|
return ((DateTimeOffset)obj).ToString (Configuration.DateTimeFormat);
|
||||||
else if (obj is IList)
|
else if (obj is IList)
|
||||||
{
|
{
|
||||||
var flattenedString = new StringBuilder();
|
var flattenedString = new StringBuilder();
|
||||||
@ -237,7 +236,7 @@ namespace IO.Swagger.Client
|
|||||||
else
|
else
|
||||||
return Convert.ToString (obj);
|
return Convert.ToString (obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deserialize the JSON string into a proper object.
|
/// Deserialize the JSON string into a proper object.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -282,9 +281,9 @@ namespace IO.Swagger.Client
|
|||||||
|
|
||||||
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 ConvertType(response.Content, type);
|
return ConvertType(response.Content, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
// at this point, it must be a model (json)
|
// at this point, it must be a model (json)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -295,7 +294,7 @@ namespace IO.Swagger.Client
|
|||||||
throw new ApiException(500, e.Message);
|
throw new ApiException(500, e.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Serialize an input (model) into JSON string
|
/// Serialize an input (model) into JSON string
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -312,7 +311,7 @@ namespace IO.Swagger.Client
|
|||||||
throw new ApiException(500, e.Message);
|
throw new ApiException(500, e.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Select the Content-Type header's value from the given content-type array:
|
/// Select the Content-Type header's value from the given content-type array:
|
||||||
/// if JSON exists in the given array, use it;
|
/// if JSON exists in the given array, use it;
|
||||||
@ -348,7 +347,7 @@ namespace IO.Swagger.Client
|
|||||||
|
|
||||||
return String.Join(",", accepts);
|
return String.Join(",", accepts);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Encode string in base64 format.
|
/// Encode string in base64 format.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -358,7 +357,7 @@ namespace IO.Swagger.Client
|
|||||||
{
|
{
|
||||||
return System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text));
|
return System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dynamically cast the object into target type.
|
/// Dynamically cast the object into target type.
|
||||||
/// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast
|
/// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast
|
||||||
|
@ -12,18 +12,18 @@ namespace IO.Swagger.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The error code (HTTP status code).</value>
|
/// <value>The error code (HTTP status code).</value>
|
||||||
public int ErrorCode { get; set; }
|
public int ErrorCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the error content (body json object)
|
/// Gets or sets the error content (body json object)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The error content (Http response body).</value>
|
/// <value>The error content (Http response body).</value>
|
||||||
public dynamic ErrorContent { get; private set; }
|
public dynamic ErrorContent { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ApiException() {}
|
public ApiException() {}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -33,7 +33,7 @@ namespace IO.Swagger.Client
|
|||||||
{
|
{
|
||||||
this.ErrorCode = errorCode;
|
this.ErrorCode = errorCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -46,5 +46,5 @@ namespace IO.Swagger.Client
|
|||||||
this.ErrorContent = errorContent;
|
this.ErrorContent = errorContent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -13,19 +13,19 @@ namespace IO.Swagger.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The status code.</value>
|
/// <value>The status code.</value>
|
||||||
public int StatusCode { get; private set; }
|
public int StatusCode { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the HTTP headers
|
/// Gets or sets the HTTP headers
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>HTTP headers</value>
|
/// <value>HTTP headers</value>
|
||||||
public IDictionary<string, string> Headers { get; private set; }
|
public IDictionary<string, string> Headers { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the data (parsed HTTP body)
|
/// Gets or sets the data (parsed HTTP body)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The data.</value>
|
/// <value>The data.</value>
|
||||||
public T Data { get; private set; }
|
public T Data { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ApiResponse<T>" /> class.
|
/// Initializes a new instance of the <see cref="ApiResponse<T>" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -38,7 +38,7 @@ namespace IO.Swagger.Client
|
|||||||
this.Headers = headers;
|
this.Headers = headers;
|
||||||
this.Data = data;
|
this.Data = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ namespace IO.Swagger.Client
|
|||||||
{
|
{
|
||||||
get { return ApiClient.RestClient.Timeout; }
|
get { return ApiClient.RestClient.Timeout; }
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (ApiClient != null)
|
if (ApiClient != null)
|
||||||
ApiClient.RestClient.Timeout = value;
|
ApiClient.RestClient.Timeout = value;
|
||||||
@ -220,7 +220,7 @@ namespace IO.Swagger.Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create the directory if it does not exist
|
// create the directory if it does not exist
|
||||||
if (!Directory.Exists(value))
|
if (!Directory.Exists(value))
|
||||||
Directory.CreateDirectory(value);
|
Directory.CreateDirectory(value);
|
||||||
|
|
||||||
// check if the path contains directory separator at the end
|
// check if the path contains directory separator at the end
|
||||||
|
@ -37,7 +37,7 @@ namespace IO.Swagger.Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets ClassName
|
/// Gets or Sets ClassName
|
||||||
@ -54,11 +54,10 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class Animal {\n");
|
sb.Append("class Animal {\n");
|
||||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -109,10 +108,8 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hash = hash * 59 + this.ClassName.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ namespace IO.Swagger.Model
|
|||||||
this.Declawed = Declawed;
|
this.Declawed = Declawed;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets ClassName
|
/// Gets or Sets ClassName
|
||||||
@ -62,12 +62,11 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class Cat {\n");
|
sb.Append("class Cat {\n");
|
||||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||||
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -123,13 +122,10 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hash = hash * 59 + this.ClassName.GetHashCode();
|
||||||
|
|
||||||
if (this.Declawed != null)
|
if (this.Declawed != null)
|
||||||
hash = hash * 59 + this.Declawed.GetHashCode();
|
hash = hash * 59 + this.Declawed.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Model
|
|||||||
this.Name = Name;
|
this.Name = Name;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Id
|
/// Gets or Sets Id
|
||||||
@ -54,12 +54,11 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class Category {\n");
|
sb.Append("class Category {\n");
|
||||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -115,13 +114,10 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hash = hash * 59 + this.Id.GetHashCode();
|
||||||
|
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hash = hash * 59 + this.Name.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ namespace IO.Swagger.Model
|
|||||||
this.Breed = Breed;
|
this.Breed = Breed;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets ClassName
|
/// Gets or Sets ClassName
|
||||||
@ -62,12 +62,11 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class Dog {\n");
|
sb.Append("class Dog {\n");
|
||||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||||
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -123,13 +122,10 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hash = hash * 59 + this.ClassName.GetHashCode();
|
||||||
|
|
||||||
if (this.Breed != null)
|
if (this.Breed != null)
|
||||||
hash = hash * 59 + this.Breed.GetHashCode();
|
hash = hash * 59 + this.Breed.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ namespace IO.Swagger.Model
|
|||||||
this.DateTime = DateTime;
|
this.DateTime = DateTime;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Integer
|
/// Gets or Sets Integer
|
||||||
@ -134,21 +134,20 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class FormatTest {\n");
|
sb.Append("class FormatTest {\n");
|
||||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||||
sb.Append(" _Float: ").Append(_Float).Append("\n");
|
sb.Append(" _Float: ").Append(_Float).Append("\n");
|
||||||
sb.Append(" _Double: ").Append(_Double).Append("\n");
|
sb.Append(" _Double: ").Append(_Double).Append("\n");
|
||||||
sb.Append(" _String: ").Append(_String).Append("\n");
|
sb.Append(" _String: ").Append(_String).Append("\n");
|
||||||
sb.Append(" _Byte: ").Append(_Byte).Append("\n");
|
sb.Append(" _Byte: ").Append(_Byte).Append("\n");
|
||||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -249,40 +248,28 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.Integer != null)
|
if (this.Integer != null)
|
||||||
hash = hash * 59 + this.Integer.GetHashCode();
|
hash = hash * 59 + this.Integer.GetHashCode();
|
||||||
|
|
||||||
if (this.Int32 != null)
|
if (this.Int32 != null)
|
||||||
hash = hash * 59 + this.Int32.GetHashCode();
|
hash = hash * 59 + this.Int32.GetHashCode();
|
||||||
|
|
||||||
if (this.Int64 != null)
|
if (this.Int64 != null)
|
||||||
hash = hash * 59 + this.Int64.GetHashCode();
|
hash = hash * 59 + this.Int64.GetHashCode();
|
||||||
|
|
||||||
if (this.Number != null)
|
if (this.Number != null)
|
||||||
hash = hash * 59 + this.Number.GetHashCode();
|
hash = hash * 59 + this.Number.GetHashCode();
|
||||||
|
|
||||||
if (this._Float != null)
|
if (this._Float != null)
|
||||||
hash = hash * 59 + this._Float.GetHashCode();
|
hash = hash * 59 + this._Float.GetHashCode();
|
||||||
|
|
||||||
if (this._Double != null)
|
if (this._Double != null)
|
||||||
hash = hash * 59 + this._Double.GetHashCode();
|
hash = hash * 59 + this._Double.GetHashCode();
|
||||||
|
|
||||||
if (this._String != null)
|
if (this._String != null)
|
||||||
hash = hash * 59 + this._String.GetHashCode();
|
hash = hash * 59 + this._String.GetHashCode();
|
||||||
|
|
||||||
if (this._Byte != null)
|
if (this._Byte != null)
|
||||||
hash = hash * 59 + this._Byte.GetHashCode();
|
hash = hash * 59 + this._Byte.GetHashCode();
|
||||||
|
|
||||||
if (this.Binary != null)
|
if (this.Binary != null)
|
||||||
hash = hash * 59 + this.Binary.GetHashCode();
|
hash = hash * 59 + this.Binary.GetHashCode();
|
||||||
|
|
||||||
if (this.Date != null)
|
if (this.Date != null)
|
||||||
hash = hash * 59 + this.Date.GetHashCode();
|
hash = hash * 59 + this.Date.GetHashCode();
|
||||||
|
|
||||||
if (this.DateTime != null)
|
if (this.DateTime != null)
|
||||||
hash = hash * 59 + this.DateTime.GetHashCode();
|
hash = hash * 59 + this.DateTime.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ namespace IO.Swagger.Model
|
|||||||
[DataContract]
|
[DataContract]
|
||||||
public partial class InlineResponse200 : IEquatable<InlineResponse200>
|
public partial class InlineResponse200 : IEquatable<InlineResponse200>
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// pet status in the store
|
/// pet status in the store
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -72,7 +72,7 @@ namespace IO.Swagger.Model
|
|||||||
this.PhotoUrls = PhotoUrls;
|
this.PhotoUrls = PhotoUrls;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Tags
|
/// Gets or Sets Tags
|
||||||
@ -113,16 +113,15 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class InlineResponse200 {\n");
|
sb.Append("class InlineResponse200 {\n");
|
||||||
sb.Append(" Tags: ").Append(Tags).Append("\n");
|
sb.Append(" Tags: ").Append(Tags).Append("\n");
|
||||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
sb.Append(" Category: ").Append(Category).Append("\n");
|
sb.Append(" Category: ").Append(Category).Append("\n");
|
||||||
sb.Append(" Status: ").Append(Status).Append("\n");
|
sb.Append(" Status: ").Append(Status).Append("\n");
|
||||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
sb.Append(" PhotoUrls: ").Append(PhotoUrls).Append("\n");
|
sb.Append(" PhotoUrls: ").Append(PhotoUrls).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -198,25 +197,18 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.Tags != null)
|
if (this.Tags != null)
|
||||||
hash = hash * 59 + this.Tags.GetHashCode();
|
hash = hash * 59 + this.Tags.GetHashCode();
|
||||||
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hash = hash * 59 + this.Id.GetHashCode();
|
||||||
|
|
||||||
if (this.Category != null)
|
if (this.Category != null)
|
||||||
hash = hash * 59 + this.Category.GetHashCode();
|
hash = hash * 59 + this.Category.GetHashCode();
|
||||||
|
|
||||||
if (this.Status != null)
|
if (this.Status != null)
|
||||||
hash = hash * 59 + this.Status.GetHashCode();
|
hash = hash * 59 + this.Status.GetHashCode();
|
||||||
|
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hash = hash * 59 + this.Name.GetHashCode();
|
||||||
|
|
||||||
if (this.PhotoUrls != null)
|
if (this.PhotoUrls != null)
|
||||||
hash = hash * 59 + this.PhotoUrls.GetHashCode();
|
hash = hash * 59 + this.PhotoUrls.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ using Newtonsoft.Json.Converters;
|
|||||||
namespace IO.Swagger.Model
|
namespace IO.Swagger.Model
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
/// Model for testing model name starting with number
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataContract]
|
[DataContract]
|
||||||
public partial class Model200Response : IEquatable<Model200Response>
|
public partial class Model200Response : IEquatable<Model200Response>
|
||||||
@ -29,7 +29,7 @@ namespace IO.Swagger.Model
|
|||||||
this.Name = Name;
|
this.Name = Name;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Name
|
/// Gets or Sets Name
|
||||||
@ -46,11 +46,10 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class Model200Response {\n");
|
sb.Append("class Model200Response {\n");
|
||||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -101,10 +100,8 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hash = hash * 59 + this.Name.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ using Newtonsoft.Json.Converters;
|
|||||||
namespace IO.Swagger.Model
|
namespace IO.Swagger.Model
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
/// Model for testing reserved words
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataContract]
|
[DataContract]
|
||||||
public partial class ModelReturn : IEquatable<ModelReturn>
|
public partial class ModelReturn : IEquatable<ModelReturn>
|
||||||
@ -29,7 +29,7 @@ namespace IO.Swagger.Model
|
|||||||
this._Return = _Return;
|
this._Return = _Return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets _Return
|
/// Gets or Sets _Return
|
||||||
@ -46,11 +46,10 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class ModelReturn {\n");
|
sb.Append("class ModelReturn {\n");
|
||||||
sb.Append(" _Return: ").Append(_Return).Append("\n");
|
sb.Append(" _Return: ").Append(_Return).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -101,10 +100,8 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this._Return != null)
|
if (this._Return != null)
|
||||||
hash = hash * 59 + this._Return.GetHashCode();
|
hash = hash * 59 + this._Return.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ using Newtonsoft.Json.Converters;
|
|||||||
namespace IO.Swagger.Model
|
namespace IO.Swagger.Model
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
/// Model for testing model name same as property name
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataContract]
|
[DataContract]
|
||||||
public partial class Name : IEquatable<Name>
|
public partial class Name : IEquatable<Name>
|
||||||
@ -37,7 +37,7 @@ namespace IO.Swagger.Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets _Name
|
/// Gets or Sets _Name
|
||||||
@ -60,12 +60,11 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class Name {\n");
|
sb.Append("class Name {\n");
|
||||||
sb.Append(" _Name: ").Append(_Name).Append("\n");
|
sb.Append(" _Name: ").Append(_Name).Append("\n");
|
||||||
sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n");
|
sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -121,13 +120,10 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this._Name != null)
|
if (this._Name != null)
|
||||||
hash = hash * 59 + this._Name.GetHashCode();
|
hash = hash * 59 + this._Name.GetHashCode();
|
||||||
|
|
||||||
if (this.SnakeCase != null)
|
if (this.SnakeCase != null)
|
||||||
hash = hash * 59 + this.SnakeCase.GetHashCode();
|
hash = hash * 59 + this.SnakeCase.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ namespace IO.Swagger.Model
|
|||||||
[DataContract]
|
[DataContract]
|
||||||
public partial class Order : IEquatable<Order>
|
public partial class Order : IEquatable<Order>
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Order Status
|
/// Order Status
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -62,7 +62,7 @@ namespace IO.Swagger.Model
|
|||||||
this.Complete = Complete;
|
this.Complete = Complete;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Id
|
/// Gets or Sets Id
|
||||||
@ -103,16 +103,15 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class Order {\n");
|
sb.Append("class Order {\n");
|
||||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
sb.Append(" PetId: ").Append(PetId).Append("\n");
|
sb.Append(" PetId: ").Append(PetId).Append("\n");
|
||||||
sb.Append(" Quantity: ").Append(Quantity).Append("\n");
|
sb.Append(" Quantity: ").Append(Quantity).Append("\n");
|
||||||
sb.Append(" ShipDate: ").Append(ShipDate).Append("\n");
|
sb.Append(" ShipDate: ").Append(ShipDate).Append("\n");
|
||||||
sb.Append(" Status: ").Append(Status).Append("\n");
|
sb.Append(" Status: ").Append(Status).Append("\n");
|
||||||
sb.Append(" Complete: ").Append(Complete).Append("\n");
|
sb.Append(" Complete: ").Append(Complete).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -188,25 +187,18 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hash = hash * 59 + this.Id.GetHashCode();
|
||||||
|
|
||||||
if (this.PetId != null)
|
if (this.PetId != null)
|
||||||
hash = hash * 59 + this.PetId.GetHashCode();
|
hash = hash * 59 + this.PetId.GetHashCode();
|
||||||
|
|
||||||
if (this.Quantity != null)
|
if (this.Quantity != null)
|
||||||
hash = hash * 59 + this.Quantity.GetHashCode();
|
hash = hash * 59 + this.Quantity.GetHashCode();
|
||||||
|
|
||||||
if (this.ShipDate != null)
|
if (this.ShipDate != null)
|
||||||
hash = hash * 59 + this.ShipDate.GetHashCode();
|
hash = hash * 59 + this.ShipDate.GetHashCode();
|
||||||
|
|
||||||
if (this.Status != null)
|
if (this.Status != null)
|
||||||
hash = hash * 59 + this.Status.GetHashCode();
|
hash = hash * 59 + this.Status.GetHashCode();
|
||||||
|
|
||||||
if (this.Complete != null)
|
if (this.Complete != null)
|
||||||
hash = hash * 59 + this.Complete.GetHashCode();
|
hash = hash * 59 + this.Complete.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ namespace IO.Swagger.Model
|
|||||||
[DataContract]
|
[DataContract]
|
||||||
public partial class Pet : IEquatable<Pet>
|
public partial class Pet : IEquatable<Pet>
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// pet status in the store
|
/// pet status in the store
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -80,7 +80,7 @@ namespace IO.Swagger.Model
|
|||||||
this.Status = Status;
|
this.Status = Status;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Id
|
/// Gets or Sets Id
|
||||||
@ -121,16 +121,15 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class Pet {\n");
|
sb.Append("class Pet {\n");
|
||||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
sb.Append(" Category: ").Append(Category).Append("\n");
|
sb.Append(" Category: ").Append(Category).Append("\n");
|
||||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
sb.Append(" PhotoUrls: ").Append(PhotoUrls).Append("\n");
|
sb.Append(" PhotoUrls: ").Append(PhotoUrls).Append("\n");
|
||||||
sb.Append(" Tags: ").Append(Tags).Append("\n");
|
sb.Append(" Tags: ").Append(Tags).Append("\n");
|
||||||
sb.Append(" Status: ").Append(Status).Append("\n");
|
sb.Append(" Status: ").Append(Status).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -206,25 +205,18 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hash = hash * 59 + this.Id.GetHashCode();
|
||||||
|
|
||||||
if (this.Category != null)
|
if (this.Category != null)
|
||||||
hash = hash * 59 + this.Category.GetHashCode();
|
hash = hash * 59 + this.Category.GetHashCode();
|
||||||
|
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hash = hash * 59 + this.Name.GetHashCode();
|
||||||
|
|
||||||
if (this.PhotoUrls != null)
|
if (this.PhotoUrls != null)
|
||||||
hash = hash * 59 + this.PhotoUrls.GetHashCode();
|
hash = hash * 59 + this.PhotoUrls.GetHashCode();
|
||||||
|
|
||||||
if (this.Tags != null)
|
if (this.Tags != null)
|
||||||
hash = hash * 59 + this.Tags.GetHashCode();
|
hash = hash * 59 + this.Tags.GetHashCode();
|
||||||
|
|
||||||
if (this.Status != null)
|
if (this.Status != null)
|
||||||
hash = hash * 59 + this.Status.GetHashCode();
|
hash = hash * 59 + this.Status.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ namespace IO.Swagger.Model
|
|||||||
this.SpecialPropertyName = SpecialPropertyName;
|
this.SpecialPropertyName = SpecialPropertyName;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets SpecialPropertyName
|
/// Gets or Sets SpecialPropertyName
|
||||||
@ -46,11 +46,10 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class SpecialModelName {\n");
|
sb.Append("class SpecialModelName {\n");
|
||||||
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -101,10 +100,8 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.SpecialPropertyName != null)
|
if (this.SpecialPropertyName != null)
|
||||||
hash = hash * 59 + this.SpecialPropertyName.GetHashCode();
|
hash = hash * 59 + this.SpecialPropertyName.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ namespace IO.Swagger.Model
|
|||||||
this.Name = Name;
|
this.Name = Name;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Id
|
/// Gets or Sets Id
|
||||||
@ -54,12 +54,11 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class Tag {\n");
|
sb.Append("class Tag {\n");
|
||||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -115,13 +114,10 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hash = hash * 59 + this.Id.GetHashCode();
|
||||||
|
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hash = hash * 59 + this.Name.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ namespace IO.Swagger.Model
|
|||||||
this.UserStatus = UserStatus;
|
this.UserStatus = UserStatus;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Id
|
/// Gets or Sets Id
|
||||||
@ -103,18 +103,17 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class User {\n");
|
sb.Append("class User {\n");
|
||||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
sb.Append(" Username: ").Append(Username).Append("\n");
|
sb.Append(" Username: ").Append(Username).Append("\n");
|
||||||
sb.Append(" FirstName: ").Append(FirstName).Append("\n");
|
sb.Append(" FirstName: ").Append(FirstName).Append("\n");
|
||||||
sb.Append(" LastName: ").Append(LastName).Append("\n");
|
sb.Append(" LastName: ").Append(LastName).Append("\n");
|
||||||
sb.Append(" Email: ").Append(Email).Append("\n");
|
sb.Append(" Email: ").Append(Email).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||||
sb.Append(" Phone: ").Append(Phone).Append("\n");
|
sb.Append(" Phone: ").Append(Phone).Append("\n");
|
||||||
sb.Append(" UserStatus: ").Append(UserStatus).Append("\n");
|
sb.Append(" UserStatus: ").Append(UserStatus).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -200,31 +199,22 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hash = hash * 59 + this.Id.GetHashCode();
|
||||||
|
|
||||||
if (this.Username != null)
|
if (this.Username != null)
|
||||||
hash = hash * 59 + this.Username.GetHashCode();
|
hash = hash * 59 + this.Username.GetHashCode();
|
||||||
|
|
||||||
if (this.FirstName != null)
|
if (this.FirstName != null)
|
||||||
hash = hash * 59 + this.FirstName.GetHashCode();
|
hash = hash * 59 + this.FirstName.GetHashCode();
|
||||||
|
|
||||||
if (this.LastName != null)
|
if (this.LastName != null)
|
||||||
hash = hash * 59 + this.LastName.GetHashCode();
|
hash = hash * 59 + this.LastName.GetHashCode();
|
||||||
|
|
||||||
if (this.Email != null)
|
if (this.Email != null)
|
||||||
hash = hash * 59 + this.Email.GetHashCode();
|
hash = hash * 59 + this.Email.GetHashCode();
|
||||||
|
|
||||||
if (this.Password != null)
|
if (this.Password != null)
|
||||||
hash = hash * 59 + this.Password.GetHashCode();
|
hash = hash * 59 + this.Password.GetHashCode();
|
||||||
|
|
||||||
if (this.Phone != null)
|
if (this.Phone != null)
|
||||||
hash = hash * 59 + this.Phone.GetHashCode();
|
hash = hash * 59 + this.Phone.GetHashCode();
|
||||||
|
|
||||||
if (this.UserStatus != null)
|
if (this.UserStatus != null)
|
||||||
hash = hash * 59 + this.UserStatus.GetHashCode();
|
hash = hash * 59 + this.UserStatus.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user