minor fix to docstring in csharp

This commit is contained in:
wing328 2016-03-31 16:52:00 +08:00
parent 94f86613a3
commit f521d6e166
10 changed files with 53 additions and 6 deletions

View File

@ -25,6 +25,7 @@ namespace {{packageName}}.Client
/// <param name="tempFolderPath">Temp folder path</param>
/// <param name="dateTimeFormat">DateTime format string</param>
/// <param name="timeout">HTTP connection timeout (in milliseconds)</param>
/// <param name="userAgent">HTTP user agent</param>
public Configuration(ApiClient apiClient = null,
Dictionary<String, String> defaultHeader = null,
string username = null,

View File

@ -20,6 +20,10 @@ namespace {{packageName}}.Model
public partial class {{classname}} : {{#parent}}{{{parent}}}, {{/parent}} IEquatable<{{classname}}>
{ {{#vars}}{{#isEnum}}
/// <summary>
/// {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{{description}}}{{/description}}
/// </summary>{{#description}}
/// <value>{{{description}}}</value>{{/description}}
[JsonConverter(typeof(StringEnumConverter))]
{{>enumClass}}{{/isEnum}}{{#items.isEnum}}{{#items}}
{{>enumClass}}{{/items}}{{/items.isEnum}}{{/vars}}

View File

@ -60,6 +60,15 @@ namespace IO.Swagger.Test
// TODO: unit test for the property '_Name'
}
/// <summary>
/// Test the property 'SnakeCase'
/// </summary>
[Test]
public void SnakeCaseTest()
{
// TODO: unit test for the property 'SnakeCase'
}
}

View File

@ -25,6 +25,7 @@ namespace IO.Swagger.Client
/// <param name="tempFolderPath">Temp folder path</param>
/// <param name="dateTimeFormat">DateTime format string</param>
/// <param name="timeout">HTTP connection timeout (in milliseconds)</param>
/// <param name="userAgent">HTTP user agent</param>
public Configuration(ApiClient apiClient = null,
Dictionary<String, String> defaultHeader = null,
string username = null,

View File

@ -18,6 +18,10 @@ namespace IO.Swagger.Model
public partial class InlineResponse200 : IEquatable<InlineResponse200>
{
/// <summary>
/// pet status in the store
/// </summary>
/// <value>pet status in the store</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusEnum {
@ -31,6 +35,7 @@ namespace IO.Swagger.Model
Sold
}
/// <summary>
/// pet status in the store
/// </summary>

View File

@ -23,10 +23,12 @@ namespace IO.Swagger.Model
/// Initializes a new instance of the <see cref="Name" />class.
/// </summary>
/// <param name="_Name">_Name.</param>
/// <param name="SnakeCase">SnakeCase.</param>
public Name(int? _Name = null)
public Name(int? _Name = null, int? SnakeCase = null)
{
this._Name = _Name;
this.SnakeCase = SnakeCase;
}
@ -37,6 +39,12 @@ namespace IO.Swagger.Model
[DataMember(Name="name", EmitDefaultValue=false)]
public int? _Name { get; set; }
/// <summary>
/// Gets or Sets SnakeCase
/// </summary>
[DataMember(Name="snake_case", EmitDefaultValue=false)]
public int? SnakeCase { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
@ -46,6 +54,7 @@ namespace IO.Swagger.Model
var sb = new StringBuilder();
sb.Append("class Name {\n");
sb.Append(" _Name: ").Append(_Name).Append("\n");
sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n");
sb.Append("}\n");
return sb.ToString();
@ -87,6 +96,11 @@ namespace IO.Swagger.Model
this._Name == other._Name ||
this._Name != null &&
this._Name.Equals(other._Name)
) &&
(
this.SnakeCase == other.SnakeCase ||
this.SnakeCase != null &&
this.SnakeCase.Equals(other.SnakeCase)
);
}
@ -105,6 +119,9 @@ namespace IO.Swagger.Model
if (this._Name != null)
hash = hash * 59 + this._Name.GetHashCode();
if (this.SnakeCase != null)
hash = hash * 59 + this.SnakeCase.GetHashCode();
return hash;
}
}

View File

@ -18,6 +18,10 @@ namespace IO.Swagger.Model
public partial class Order : IEquatable<Order>
{
/// <summary>
/// Order Status
/// </summary>
/// <value>Order Status</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusEnum {
@ -31,6 +35,7 @@ namespace IO.Swagger.Model
Delivered
}
/// <summary>
/// Order Status
/// </summary>

View File

@ -18,6 +18,10 @@ namespace IO.Swagger.Model
public partial class Pet : IEquatable<Pet>
{
/// <summary>
/// pet status in the store
/// </summary>
/// <value>pet status in the store</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusEnum {
@ -31,6 +35,7 @@ namespace IO.Swagger.Model
Sold
}
/// <summary>
/// pet status in the store
/// </summary>

View File

@ -2,7 +2,7 @@
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.Workbench ActiveDocument="TestPet.cs">
<Files>
<File FileName="TestPet.cs" Line="218" Column="47" />
<File FileName="TestPet.cs" Line="23" Column="17" />
<File FileName="TestOrder.cs" Line="1" Column="1" />
</Files>
</MonoDevelop.Ide.Workbench>