mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 19:08:52 +00:00
remove default temp folder during initalization (#4749)
This commit is contained in:
parent
0d14496bd6
commit
ef31efe8d9
@ -234,7 +234,7 @@ namespace {{packageName}}.Client
|
||||
return apiKeyValue;
|
||||
}
|
||||
|
||||
private string _tempFolderPath = Path.GetTempPath();
|
||||
private string _tempFolderPath;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the temporary folder path to store the files downloaded from the server.
|
||||
@ -242,7 +242,15 @@ namespace {{packageName}}.Client
|
||||
/// <value>Folder path.</value>
|
||||
public String TempFolderPath
|
||||
{
|
||||
get { return _tempFolderPath; }
|
||||
get
|
||||
{
|
||||
// default to Path.GetTempPath() if _tempFolderPath is not set
|
||||
if (String.IsNullOrEmpty(_tempFolderPath))
|
||||
{
|
||||
_tempFolderPath = Path.GetTempPath();
|
||||
}
|
||||
return _tempFolderPath;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
VisualStudioVersion = 12.0.0.0
|
||||
MinimumVisualStudioVersion = 10.0.0.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{4F6B73F4-427E-4C54-BB06-A106EBF09288}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{45175ABF-4F24-48D0-B481-B1A2D9B8649E}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
|
||||
EndProject
|
||||
@ -12,10 +12,10 @@ Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{4F6B73F4-427E-4C54-BB06-A106EBF09288}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4F6B73F4-427E-4C54-BB06-A106EBF09288}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4F6B73F4-427E-4C54-BB06-A106EBF09288}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4F6B73F4-427E-4C54-BB06-A106EBF09288}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{45175ABF-4F24-48D0-B481-B1A2D9B8649E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{45175ABF-4F24-48D0-B481-B1A2D9B8649E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{45175ABF-4F24-48D0-B481-B1A2D9B8649E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{45175ABF-4F24-48D0-B481-B1A2D9B8649E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
@ -243,7 +243,7 @@ namespace IO.Swagger.Client
|
||||
return apiKeyValue;
|
||||
}
|
||||
|
||||
private string _tempFolderPath = Path.GetTempPath();
|
||||
private string _tempFolderPath;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the temporary folder path to store the files downloaded from the server.
|
||||
@ -251,7 +251,15 @@ namespace IO.Swagger.Client
|
||||
/// <value>Folder path.</value>
|
||||
public String TempFolderPath
|
||||
{
|
||||
get { return _tempFolderPath; }
|
||||
get
|
||||
{
|
||||
// default to Path.GetTempPath() if _tempFolderPath is not set
|
||||
if (String.IsNullOrEmpty(_tempFolderPath))
|
||||
{
|
||||
_tempFolderPath = Path.GetTempPath();
|
||||
}
|
||||
return _tempFolderPath;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ Contact: apiteam@swagger.io
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{4F6B73F4-427E-4C54-BB06-A106EBF09288}</ProjectGuid>
|
||||
<ProjectGuid>{45175ABF-4F24-48D0-B481-B1A2D9B8649E}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>IO.Swagger</RootNamespace>
|
||||
|
@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
VisualStudioVersion = 12.0.0.0
|
||||
MinimumVisualStudioVersion = 10.0.0.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{4B8145C1-32ED-46D4-9DD5-10A82B5B0013}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{5B61D15D-DCEB-42AF-89A6-6AE15FB9548F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
|
||||
EndProject
|
||||
@ -12,10 +12,10 @@ Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{4B8145C1-32ED-46D4-9DD5-10A82B5B0013}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4B8145C1-32ED-46D4-9DD5-10A82B5B0013}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4B8145C1-32ED-46D4-9DD5-10A82B5B0013}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4B8145C1-32ED-46D4-9DD5-10A82B5B0013}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5B61D15D-DCEB-42AF-89A6-6AE15FB9548F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5B61D15D-DCEB-42AF-89A6-6AE15FB9548F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5B61D15D-DCEB-42AF-89A6-6AE15FB9548F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5B61D15D-DCEB-42AF-89A6-6AE15FB9548F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
@ -6,7 +6,7 @@ This C# SDK is automatically generated by the [Swagger Codegen](https://github.c
|
||||
|
||||
- API version: 1.0.0
|
||||
- SDK version: 1.0.0
|
||||
- Build package: class io.swagger.codegen.languages.CSharpClientCodegen
|
||||
- Build package: io.swagger.codegen.languages.CSharpClientCodegen
|
||||
|
||||
<a name="frameworks-supported"></a>
|
||||
## Frameworks supported
|
||||
@ -38,6 +38,20 @@ using IO.Swagger.Api;
|
||||
using IO.Swagger.Client;
|
||||
using IO.Swagger.Model;
|
||||
```
|
||||
|
||||
<a name="packaging"></a>
|
||||
## Packaging
|
||||
|
||||
A `.nuspec` is included with the project. You can follow the Nuget quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#create-the-package) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#publish-the-package) packages.
|
||||
|
||||
This `.nuspec` uses placeholders from the `.csproj`, so build the `.csproj` directly:
|
||||
|
||||
```
|
||||
nuget pack -Build -OutputDirectory out IO.Swagger.csproj
|
||||
```
|
||||
|
||||
Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consume the new package via Nuget as usual.
|
||||
|
||||
<a name="getting-started"></a>
|
||||
## Getting Started
|
||||
|
||||
@ -115,6 +129,7 @@ Class | Method | HTTP request | Description
|
||||
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
- [Model.ArrayTest](docs/ArrayTest.md)
|
||||
- [Model.Capitalization](docs/Capitalization.md)
|
||||
- [Model.Cat](docs/Cat.md)
|
||||
- [Model.Category](docs/Category.md)
|
||||
- [Model.ClassModel](docs/ClassModel.md)
|
||||
|
@ -15,6 +15,8 @@ Method | HTTP request | Description
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
using System;
|
||||
@ -166,6 +168,8 @@ void (empty response body)
|
||||
|
||||
To test enum parameters
|
||||
|
||||
To test enum parameters
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
using System;
|
||||
@ -209,11 +213,11 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**enumFormStringArray** | [**List<string>**](string.md)| Form parameter enum test (string array) | [optional]
|
||||
**enumFormStringArray** | [**List<string>**](string.md)| Form parameter enum test (string array) | [optional]
|
||||
**enumFormString** | **string**| Form parameter enum test (string) | [optional] [default to -efg]
|
||||
**enumHeaderStringArray** | [**List<string>**](string.md)| Header parameter enum test (string array) | [optional]
|
||||
**enumHeaderStringArray** | [**List<string>**](string.md)| Header parameter enum test (string array) | [optional]
|
||||
**enumHeaderString** | **string**| Header parameter enum test (string) | [optional] [default to -efg]
|
||||
**enumQueryStringArray** | [**List<string>**](string.md)| Query parameter enum test (string array) | [optional]
|
||||
**enumQueryStringArray** | [**List<string>**](string.md)| Query parameter enum test (string array) | [optional]
|
||||
**enumQueryString** | **string**| Query parameter enum test (string) | [optional] [default to -efg]
|
||||
**enumQueryInteger** | **int?**| Query parameter enum test (double) | [optional]
|
||||
**enumQueryDouble** | **double?**| Query parameter enum test (double) | [optional]
|
||||
|
@ -192,7 +192,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**status** | [**List<string>**](string.md)| Status values that need to be considered for filter |
|
||||
**status** | [**List<string>**](string.md)| Status values that need to be considered for filter |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -257,7 +257,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**tags** | [**List<string>**](string.md)| Tags to filter by |
|
||||
**tags** | [**List<string>**](string.md)| Tags to filter by |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -119,7 +119,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**List<User>**](User.md)| List of user object |
|
||||
**body** | [**List<User>**](User.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -180,7 +180,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**List<User>**](User.md)| List of user object |
|
||||
**body** | [**List<User>**](User.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -74,7 +74,7 @@ Contact: apiteam@swagger.io
|
||||
<Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\IO.Swagger\IO.Swagger.csproj">
|
||||
<Project>{4B8145C1-32ED-46D4-9DD5-10A82B5B0013}</Project>
|
||||
<Project>{5B61D15D-DCEB-42AF-89A6-6AE15FB9548F}</Project>
|
||||
<Name>IO.Swagger</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
|
@ -28,7 +28,7 @@ namespace IO.Swagger.Api
|
||||
/// To test \"client\" model
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
@ -39,7 +39,7 @@ namespace IO.Swagger.Api
|
||||
/// To test \"client\" model
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
@ -96,7 +96,7 @@ namespace IO.Swagger.Api
|
||||
/// To test enum parameters
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// To test enum parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional)</param>
|
||||
@ -114,7 +114,7 @@ namespace IO.Swagger.Api
|
||||
/// To test enum parameters
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// To test enum parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional)</param>
|
||||
@ -133,7 +133,7 @@ namespace IO.Swagger.Api
|
||||
/// To test \"client\" model
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
@ -144,7 +144,7 @@ namespace IO.Swagger.Api
|
||||
/// To test \"client\" model
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
@ -201,7 +201,7 @@ namespace IO.Swagger.Api
|
||||
/// To test enum parameters
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// To test enum parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional)</param>
|
||||
@ -219,7 +219,7 @@ namespace IO.Swagger.Api
|
||||
/// To test enum parameters
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// To test enum parameters
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional)</param>
|
||||
@ -345,7 +345,7 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
@ -357,7 +357,7 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
@ -423,7 +423,7 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
@ -436,7 +436,7 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
@ -756,7 +756,7 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
/// To test enum parameters To test enum parameters
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional)</param>
|
||||
@ -774,7 +774,7 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
/// To test enum parameters To test enum parameters
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional)</param>
|
||||
@ -844,7 +844,7 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
/// To test enum parameters To test enum parameters
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional)</param>
|
||||
@ -863,7 +863,7 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
/// To test enum parameters To test enum parameters
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional)</param>
|
||||
|
@ -243,7 +243,7 @@ namespace IO.Swagger.Client
|
||||
return apiKeyValue;
|
||||
}
|
||||
|
||||
private string _tempFolderPath = Path.GetTempPath();
|
||||
private string _tempFolderPath;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the temporary folder path to store the files downloaded from the server.
|
||||
@ -251,7 +251,15 @@ namespace IO.Swagger.Client
|
||||
/// <value>Folder path.</value>
|
||||
public String TempFolderPath
|
||||
{
|
||||
get { return _tempFolderPath; }
|
||||
get
|
||||
{
|
||||
// default to Path.GetTempPath() if _tempFolderPath is not set
|
||||
if (String.IsNullOrEmpty(_tempFolderPath))
|
||||
{
|
||||
_tempFolderPath = Path.GetTempPath();
|
||||
}
|
||||
return _tempFolderPath;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ Contact: apiteam@swagger.io
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{4B8145C1-32ED-46D4-9DD5-10A82B5B0013}</ProjectGuid>
|
||||
<ProjectGuid>{5B61D15D-DCEB-42AF-89A6-6AE15FB9548F}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>IO.Swagger</RootNamespace>
|
||||
|
@ -37,7 +37,7 @@ namespace IO.Swagger.Model
|
||||
/// </summary>
|
||||
/// <param name="MapProperty">MapProperty.</param>
|
||||
/// <param name="MapOfMapProperty">MapOfMapProperty.</param>
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> MapProperty = null, Dictionary<string, Dictionary<string, string>> MapOfMapProperty = null)
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> MapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> MapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>))
|
||||
{
|
||||
this.MapProperty = MapProperty;
|
||||
this.MapOfMapProperty = MapOfMapProperty;
|
||||
|
@ -42,7 +42,7 @@ namespace IO.Swagger.Model
|
||||
/// </summary>
|
||||
/// <param name="ClassName">ClassName (required).</param>
|
||||
/// <param name="Color">Color (default to "red").</param>
|
||||
public Animal(string ClassName = null, string Color = null)
|
||||
public Animal(string ClassName = default(string), string Color = "red")
|
||||
{
|
||||
// to ensure "ClassName" is required (not null)
|
||||
if (ClassName == null)
|
||||
|
@ -38,7 +38,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="Code">Code.</param>
|
||||
/// <param name="Type">Type.</param>
|
||||
/// <param name="Message">Message.</param>
|
||||
public ApiResponse(int? Code = null, string Type = null, string Message = null)
|
||||
public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string))
|
||||
{
|
||||
this.Code = Code;
|
||||
this.Type = Type;
|
||||
|
@ -36,7 +36,7 @@ namespace IO.Swagger.Model
|
||||
/// Initializes a new instance of the <see cref="ArrayOfArrayOfNumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ArrayArrayNumber">ArrayArrayNumber.</param>
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal?>> ArrayArrayNumber = null)
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal?>> ArrayArrayNumber = default(List<List<decimal?>>))
|
||||
{
|
||||
this.ArrayArrayNumber = ArrayArrayNumber;
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ namespace IO.Swagger.Model
|
||||
/// Initializes a new instance of the <see cref="ArrayOfNumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ArrayNumber">ArrayNumber.</param>
|
||||
public ArrayOfNumberOnly(List<decimal?> ArrayNumber = null)
|
||||
public ArrayOfNumberOnly(List<decimal?> ArrayNumber = default(List<decimal?>))
|
||||
{
|
||||
this.ArrayNumber = ArrayNumber;
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="ArrayOfString">ArrayOfString.</param>
|
||||
/// <param name="ArrayArrayOfInteger">ArrayArrayOfInteger.</param>
|
||||
/// <param name="ArrayArrayOfModel">ArrayArrayOfModel.</param>
|
||||
public ArrayTest(List<string> ArrayOfString = null, List<List<long?>> ArrayArrayOfInteger = null, List<List<ReadOnlyFirst>> ArrayArrayOfModel = null)
|
||||
public ArrayTest(List<string> ArrayOfString = default(List<string>), List<List<long?>> ArrayArrayOfInteger = default(List<List<long?>>), List<List<ReadOnlyFirst>> ArrayArrayOfModel = default(List<List<ReadOnlyFirst>>))
|
||||
{
|
||||
this.ArrayOfString = ArrayOfString;
|
||||
this.ArrayArrayOfInteger = ArrayArrayOfInteger;
|
||||
|
@ -43,7 +43,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="ClassName">ClassName (required).</param>
|
||||
/// <param name="Color">Color (default to "red").</param>
|
||||
/// <param name="Declawed">Declawed.</param>
|
||||
public Cat(string ClassName = null, string Color = null, bool? Declawed = null)
|
||||
public Cat(string ClassName = default(string), string Color = "red", bool? Declawed = default(bool?))
|
||||
{
|
||||
// to ensure "ClassName" is required (not null)
|
||||
if (ClassName == null)
|
||||
|
@ -37,7 +37,7 @@ namespace IO.Swagger.Model
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Name">Name.</param>
|
||||
public Category(long? Id = null, string Name = null)
|
||||
public Category(long? Id = default(long?), string Name = default(string))
|
||||
{
|
||||
this.Id = Id;
|
||||
this.Name = Name;
|
||||
|
@ -36,7 +36,7 @@ namespace IO.Swagger.Model
|
||||
/// Initializes a new instance of the <see cref="ClassModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_Class">_Class.</param>
|
||||
public ClassModel(string _Class = null)
|
||||
public ClassModel(string _Class = default(string))
|
||||
{
|
||||
this._Class = _Class;
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="ClassName">ClassName (required).</param>
|
||||
/// <param name="Color">Color (default to "red").</param>
|
||||
/// <param name="Breed">Breed.</param>
|
||||
public Dog(string ClassName = null, string Color = null, string Breed = null)
|
||||
public Dog(string ClassName = default(string), string Color = "red", string Breed = default(string))
|
||||
{
|
||||
// to ensure "ClassName" is required (not null)
|
||||
if (ClassName == null)
|
||||
|
@ -88,7 +88,7 @@ namespace IO.Swagger.Model
|
||||
/// </summary>
|
||||
/// <param name="JustSymbol">JustSymbol.</param>
|
||||
/// <param name="ArrayEnum">ArrayEnum.</param>
|
||||
public EnumArrays(JustSymbolEnum? JustSymbol = null, List<ArrayEnumEnum> ArrayEnum = null)
|
||||
public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List<ArrayEnumEnum> ArrayEnum = default(List<ArrayEnumEnum>))
|
||||
{
|
||||
this.JustSymbol = JustSymbol;
|
||||
this.ArrayEnum = ArrayEnum;
|
||||
|
@ -120,7 +120,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="EnumInteger">EnumInteger.</param>
|
||||
/// <param name="EnumNumber">EnumNumber.</param>
|
||||
/// <param name="OuterEnum">OuterEnum.</param>
|
||||
public EnumTest(EnumStringEnum? EnumString = null, EnumIntegerEnum? EnumInteger = null, EnumNumberEnum? EnumNumber = null, OuterEnum? OuterEnum = null)
|
||||
public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum OuterEnum = default(OuterEnum))
|
||||
{
|
||||
this.EnumString = EnumString;
|
||||
this.EnumInteger = EnumInteger;
|
||||
@ -132,7 +132,7 @@ namespace IO.Swagger.Model
|
||||
/// Gets or Sets OuterEnum
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnum", EmitDefaultValue=false)]
|
||||
public OuterEnum? OuterEnum { get; set; }
|
||||
public OuterEnum OuterEnum { get; set; }
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
|
@ -53,7 +53,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="DateTime">DateTime.</param>
|
||||
/// <param name="Uuid">Uuid.</param>
|
||||
/// <param name="Password">Password (required).</param>
|
||||
public FormatTest(int? Integer = null, int? Int32 = null, long? Int64 = null, decimal? Number = null, float? _Float = null, double? _Double = null, string _String = null, byte[] _Byte = null, byte[] Binary = null, DateTime? Date = null, DateTime? DateTime = null, Guid? Uuid = null, string Password = null)
|
||||
public FormatTest(int? Integer = default(int?), int? Int32 = default(int?), long? Int64 = default(long?), decimal? Number = default(decimal?), float? _Float = default(float?), double? _Double = default(double?), string _String = default(string), byte[] _Byte = default(byte[]), byte[] Binary = default(byte[]), DateTime? Date = default(DateTime?), DateTime? DateTime = default(DateTime?), Guid? Uuid = default(Guid?), string Password = default(string))
|
||||
{
|
||||
// to ensure "Number" is required (not null)
|
||||
if (Number == null)
|
||||
|
@ -36,7 +36,7 @@ namespace IO.Swagger.Model
|
||||
/// Initializes a new instance of the <see cref="List" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_123List">_123List.</param>
|
||||
public List(string _123List = null)
|
||||
public List(string _123List = default(string))
|
||||
{
|
||||
this._123List = _123List;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ namespace IO.Swagger.Model
|
||||
/// </summary>
|
||||
/// <param name="MapMapOfString">MapMapOfString.</param>
|
||||
/// <param name="MapOfEnumString">MapOfEnumString.</param>
|
||||
public MapTest(Dictionary<string, Dictionary<string, string>> MapMapOfString = null, Dictionary<string, InnerEnum> MapOfEnumString = null)
|
||||
public MapTest(Dictionary<string, Dictionary<string, string>> MapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> MapOfEnumString = default(Dictionary<string, InnerEnum>))
|
||||
{
|
||||
this.MapMapOfString = MapMapOfString;
|
||||
this.MapOfEnumString = MapOfEnumString;
|
||||
|
@ -38,7 +38,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="Uuid">Uuid.</param>
|
||||
/// <param name="DateTime">DateTime.</param>
|
||||
/// <param name="Map">Map.</param>
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = null, DateTime? DateTime = null, Dictionary<string, Animal> Map = null)
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary<string, Animal> Map = default(Dictionary<string, Animal>))
|
||||
{
|
||||
this.Uuid = Uuid;
|
||||
this.DateTime = DateTime;
|
||||
|
@ -37,7 +37,7 @@ namespace IO.Swagger.Model
|
||||
/// </summary>
|
||||
/// <param name="Name">Name.</param>
|
||||
/// <param name="_Class">_Class.</param>
|
||||
public Model200Response(int? Name = null, string _Class = null)
|
||||
public Model200Response(int? Name = default(int?), string _Class = default(string))
|
||||
{
|
||||
this.Name = Name;
|
||||
this._Class = _Class;
|
||||
|
@ -36,7 +36,7 @@ namespace IO.Swagger.Model
|
||||
/// Initializes a new instance of the <see cref="ModelClient" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_Client">_Client.</param>
|
||||
public ModelClient(string _Client = null)
|
||||
public ModelClient(string _Client = default(string))
|
||||
{
|
||||
this._Client = _Client;
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ namespace IO.Swagger.Model
|
||||
/// Initializes a new instance of the <see cref="ModelReturn" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_Return">_Return.</param>
|
||||
public ModelReturn(int? _Return = null)
|
||||
public ModelReturn(int? _Return = default(int?))
|
||||
{
|
||||
this._Return = _Return;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ namespace IO.Swagger.Model
|
||||
/// </summary>
|
||||
/// <param name="_Name">_Name (required).</param>
|
||||
/// <param name="Property">Property.</param>
|
||||
public Name(int? _Name = null, string Property = null)
|
||||
public Name(int? _Name = default(int?), string Property = default(string))
|
||||
{
|
||||
// to ensure "_Name" is required (not null)
|
||||
if (_Name == null)
|
||||
|
@ -36,7 +36,7 @@ namespace IO.Swagger.Model
|
||||
/// Initializes a new instance of the <see cref="NumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="JustNumber">JustNumber.</param>
|
||||
public NumberOnly(decimal? JustNumber = null)
|
||||
public NumberOnly(decimal? JustNumber = default(decimal?))
|
||||
{
|
||||
this.JustNumber = JustNumber;
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="ShipDate">ShipDate.</param>
|
||||
/// <param name="Status">Order Status.</param>
|
||||
/// <param name="Complete">Complete (default to false).</param>
|
||||
public Order(long? Id = null, long? PetId = null, int? Quantity = null, DateTime? ShipDate = null, StatusEnum? Status = null, bool? Complete = null)
|
||||
public Order(long? Id = default(long?), long? PetId = default(long?), int? Quantity = default(int?), DateTime? ShipDate = default(DateTime?), StatusEnum? Status = default(StatusEnum?), bool? Complete = false)
|
||||
{
|
||||
this.Id = Id;
|
||||
this.PetId = PetId;
|
||||
|
@ -79,7 +79,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="PhotoUrls">PhotoUrls (required).</param>
|
||||
/// <param name="Tags">Tags.</param>
|
||||
/// <param name="Status">pet status in the store.</param>
|
||||
public Pet(long? Id = null, Category Category = null, string Name = null, List<string> PhotoUrls = null, List<Tag> Tags = null, StatusEnum? Status = null)
|
||||
public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List<string> PhotoUrls = default(List<string>), List<Tag> Tags = default(List<Tag>), StatusEnum? Status = default(StatusEnum?))
|
||||
{
|
||||
// to ensure "Name" is required (not null)
|
||||
if (Name == null)
|
||||
|
@ -36,7 +36,7 @@ namespace IO.Swagger.Model
|
||||
/// Initializes a new instance of the <see cref="ReadOnlyFirst" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Baz">Baz.</param>
|
||||
public ReadOnlyFirst(string Baz = null)
|
||||
public ReadOnlyFirst(string Baz = default(string))
|
||||
{
|
||||
this.Baz = Baz;
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ namespace IO.Swagger.Model
|
||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||
/// </summary>
|
||||
/// <param name="SpecialPropertyName">SpecialPropertyName.</param>
|
||||
public SpecialModelName(long? SpecialPropertyName = null)
|
||||
public SpecialModelName(long? SpecialPropertyName = default(long?))
|
||||
{
|
||||
this.SpecialPropertyName = SpecialPropertyName;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ namespace IO.Swagger.Model
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Name">Name.</param>
|
||||
public Tag(long? Id = null, string Name = null)
|
||||
public Tag(long? Id = default(long?), string Name = default(string))
|
||||
{
|
||||
this.Id = Id;
|
||||
this.Name = Name;
|
||||
|
@ -43,7 +43,7 @@ namespace IO.Swagger.Model
|
||||
/// <param name="Password">Password.</param>
|
||||
/// <param name="Phone">Phone.</param>
|
||||
/// <param name="UserStatus">User Status.</param>
|
||||
public User(long? Id = null, string Username = null, string FirstName = null, string LastName = null, string Email = null, string Password = null, string Phone = null, int? UserStatus = null)
|
||||
public User(long? Id = default(long?), string Username = default(string), string FirstName = default(string), string LastName = default(string), string Email = default(string), string Password = default(string), string Phone = default(string), int? UserStatus = default(int?))
|
||||
{
|
||||
this.Id = Id;
|
||||
this.Username = Username;
|
||||
|
Loading…
Reference in New Issue
Block a user