177 lines
6.1 KiB
C#
177 lines
6.1 KiB
C#
/*
|
|
* 后台API
|
|
*
|
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
*
|
|
* OpenAPI spec version: Admin
|
|
*
|
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
*/
|
|
|
|
using System;
|
|
using System.Linq;
|
|
using System.IO;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Runtime.Serialization;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
|
|
|
|
namespace IO.Swagger.Model
|
|
{
|
|
/// <summary>
|
|
/// NcAllGoodsInfoListResp
|
|
/// </summary>
|
|
[DataContract]
|
|
public partial class NcAllGoodsInfoListResp : IEquatable<NcAllGoodsInfoListResp>, IValidatableObject
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="NcAllGoodsInfoListResp" /> class.
|
|
/// </summary>
|
|
/// <param name="styleNo">款号.</param>
|
|
/// <param name="goodsName">商品名.</param>
|
|
/// <param name="categoryCode">分类编码.</param>
|
|
/// <param name="categoryName">分类名.</param>
|
|
public NcAllGoodsInfoListResp(string styleNo = default(string), string goodsName = default(string), string categoryCode = default(string), string categoryName = default(string))
|
|
{
|
|
this.StyleNo = styleNo;
|
|
this.GoodsName = goodsName;
|
|
this.CategoryCode = categoryCode;
|
|
this.CategoryName = categoryName;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 款号
|
|
/// </summary>
|
|
/// <value>款号</value>
|
|
[DataMember(Name="styleNo", EmitDefaultValue=false)]
|
|
public string StyleNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 商品名
|
|
/// </summary>
|
|
/// <value>商品名</value>
|
|
[DataMember(Name="goodsName", EmitDefaultValue=false)]
|
|
public string GoodsName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分类编码
|
|
/// </summary>
|
|
/// <value>分类编码</value>
|
|
[DataMember(Name="categoryCode", EmitDefaultValue=false)]
|
|
public string CategoryCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分类名
|
|
/// </summary>
|
|
/// <value>分类名</value>
|
|
[DataMember(Name="categoryName", EmitDefaultValue=false)]
|
|
public string CategoryName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Returns the string presentation of the object
|
|
/// </summary>
|
|
/// <returns>String presentation of the object</returns>
|
|
public override string ToString()
|
|
{
|
|
var sb = new StringBuilder();
|
|
sb.Append("class NcAllGoodsInfoListResp {\n");
|
|
sb.Append(" StyleNo: ").Append(StyleNo).Append("\n");
|
|
sb.Append(" GoodsName: ").Append(GoodsName).Append("\n");
|
|
sb.Append(" CategoryCode: ").Append(CategoryCode).Append("\n");
|
|
sb.Append(" CategoryName: ").Append(CategoryName).Append("\n");
|
|
sb.Append("}\n");
|
|
return sb.ToString();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns the JSON string presentation of the object
|
|
/// </summary>
|
|
/// <returns>JSON string presentation of the object</returns>
|
|
public virtual string ToJson()
|
|
{
|
|
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns true if objects are equal
|
|
/// </summary>
|
|
/// <param name="input">Object to be compared</param>
|
|
/// <returns>Boolean</returns>
|
|
public override bool Equals(object input)
|
|
{
|
|
return this.Equals(input as NcAllGoodsInfoListResp);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns true if NcAllGoodsInfoListResp instances are equal
|
|
/// </summary>
|
|
/// <param name="input">Instance of NcAllGoodsInfoListResp to be compared</param>
|
|
/// <returns>Boolean</returns>
|
|
public bool Equals(NcAllGoodsInfoListResp input)
|
|
{
|
|
if (input == null)
|
|
return false;
|
|
|
|
return
|
|
(
|
|
this.StyleNo == input.StyleNo ||
|
|
(this.StyleNo != null &&
|
|
this.StyleNo.Equals(input.StyleNo))
|
|
) &&
|
|
(
|
|
this.GoodsName == input.GoodsName ||
|
|
(this.GoodsName != null &&
|
|
this.GoodsName.Equals(input.GoodsName))
|
|
) &&
|
|
(
|
|
this.CategoryCode == input.CategoryCode ||
|
|
(this.CategoryCode != null &&
|
|
this.CategoryCode.Equals(input.CategoryCode))
|
|
) &&
|
|
(
|
|
this.CategoryName == input.CategoryName ||
|
|
(this.CategoryName != null &&
|
|
this.CategoryName.Equals(input.CategoryName))
|
|
);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the hash code
|
|
/// </summary>
|
|
/// <returns>Hash code</returns>
|
|
public override int GetHashCode()
|
|
{
|
|
unchecked // Overflow is fine, just wrap
|
|
{
|
|
int hashCode = 41;
|
|
if (this.StyleNo != null)
|
|
hashCode = hashCode * 59 + this.StyleNo.GetHashCode();
|
|
if (this.GoodsName != null)
|
|
hashCode = hashCode * 59 + this.GoodsName.GetHashCode();
|
|
if (this.CategoryCode != null)
|
|
hashCode = hashCode * 59 + this.CategoryCode.GetHashCode();
|
|
if (this.CategoryName != null)
|
|
hashCode = hashCode * 59 + this.CategoryName.GetHashCode();
|
|
return hashCode;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To validate all properties of the instance
|
|
/// </summary>
|
|
/// <param name="validationContext">Validation context</param>
|
|
/// <returns>Validation Result</returns>
|
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
|
{
|
|
yield break;
|
|
}
|
|
}
|
|
|
|
}
|