/* * 后台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 { /// /// NcAllGoodsInfoListResp /// [DataContract] public partial class NcAllGoodsInfoListResp : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 款号. /// 商品名. /// 分类编码. /// 分类名. 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; } /// /// 款号 /// /// 款号 [DataMember(Name="styleNo", EmitDefaultValue=false)] public string StyleNo { get; set; } /// /// 商品名 /// /// 商品名 [DataMember(Name="goodsName", EmitDefaultValue=false)] public string GoodsName { get; set; } /// /// 分类编码 /// /// 分类编码 [DataMember(Name="categoryCode", EmitDefaultValue=false)] public string CategoryCode { get; set; } /// /// 分类名 /// /// 分类名 [DataMember(Name="categoryName", EmitDefaultValue=false)] public string CategoryName { get; set; } /// /// Returns the string presentation of the object /// /// String presentation of the object 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(); } /// /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// /// Returns true if objects are equal /// /// Object to be compared /// Boolean public override bool Equals(object input) { return this.Equals(input as NcAllGoodsInfoListResp); } /// /// Returns true if NcAllGoodsInfoListResp instances are equal /// /// Instance of NcAllGoodsInfoListResp to be compared /// Boolean 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)) ); } /// /// Gets the hash code /// /// Hash code 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; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }