MeiSaiSiXieTongApi/IO.Swagger/Model/NcGoodsDetailInfo.cs

245 lines
8.5 KiB
C#
Raw Normal View History

2025-04-24 18:31:27 +08:00
/*
* 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>
/// NcGoodsDetailInfo
/// </summary>
[DataContract]
public partial class NcGoodsDetailInfo : IEquatable<NcGoodsDetailInfo>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NcGoodsDetailInfo" /> class.
/// </summary>
/// <param name="kh">款号.</param>
/// <param name="name">商品名称.</param>
/// <param name="flcode">分类编码.</param>
/// <param name="price">吊牌价.</param>
/// <param name="jldw">计量单位.</param>
/// <param name="ztCode">主题编码.</param>
/// <param name="year">年份.</param>
/// <param name="brandcode">品牌编码.</param>
public NcGoodsDetailInfo(string kh = default(string), string name = default(string), string flcode = default(string), string price = default(string), string jldw = default(string), string ztCode = default(string), string year = default(string), string brandcode = default(string))
{
this.Kh = kh;
this.Name = name;
this.Flcode = flcode;
this.Price = price;
this.Jldw = jldw;
this.ZtCode = ztCode;
this.Year = year;
this.Brandcode = brandcode;
}
/// <summary>
/// 款号
/// </summary>
/// <value>款号</value>
[DataMember(Name="kh", EmitDefaultValue=false)]
public string Kh { get; set; }
/// <summary>
/// 商品名称
/// </summary>
/// <value>商品名称</value>
[DataMember(Name="name", EmitDefaultValue=false)]
public string Name { get; set; }
/// <summary>
/// 分类编码
/// </summary>
/// <value>分类编码</value>
[DataMember(Name="flcode", EmitDefaultValue=false)]
public string Flcode { get; set; }
/// <summary>
/// 吊牌价
/// </summary>
/// <value>吊牌价</value>
[DataMember(Name="price", EmitDefaultValue=false)]
public string Price { get; set; }
/// <summary>
/// 计量单位
/// </summary>
/// <value>计量单位</value>
[DataMember(Name="jldw", EmitDefaultValue=false)]
public string Jldw { get; set; }
/// <summary>
/// 主题编码
/// </summary>
/// <value>主题编码</value>
[DataMember(Name="ztCode", EmitDefaultValue=false)]
public string ZtCode { get; set; }
/// <summary>
/// 年份
/// </summary>
/// <value>年份</value>
[DataMember(Name="year", EmitDefaultValue=false)]
public string Year { get; set; }
/// <summary>
/// 品牌编码
/// </summary>
/// <value>品牌编码</value>
[DataMember(Name="brandcode", EmitDefaultValue=false)]
public string Brandcode { 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 NcGoodsDetailInfo {\n");
sb.Append(" Kh: ").Append(Kh).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Flcode: ").Append(Flcode).Append("\n");
sb.Append(" Price: ").Append(Price).Append("\n");
sb.Append(" Jldw: ").Append(Jldw).Append("\n");
sb.Append(" ZtCode: ").Append(ZtCode).Append("\n");
sb.Append(" Year: ").Append(Year).Append("\n");
sb.Append(" Brandcode: ").Append(Brandcode).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 NcGoodsDetailInfo);
}
/// <summary>
/// Returns true if NcGoodsDetailInfo instances are equal
/// </summary>
/// <param name="input">Instance of NcGoodsDetailInfo to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NcGoodsDetailInfo input)
{
if (input == null)
return false;
return
(
this.Kh == input.Kh ||
(this.Kh != null &&
this.Kh.Equals(input.Kh))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.Flcode == input.Flcode ||
(this.Flcode != null &&
this.Flcode.Equals(input.Flcode))
) &&
(
this.Price == input.Price ||
(this.Price != null &&
this.Price.Equals(input.Price))
) &&
(
this.Jldw == input.Jldw ||
(this.Jldw != null &&
this.Jldw.Equals(input.Jldw))
) &&
(
this.ZtCode == input.ZtCode ||
(this.ZtCode != null &&
this.ZtCode.Equals(input.ZtCode))
) &&
(
this.Year == input.Year ||
(this.Year != null &&
this.Year.Equals(input.Year))
) &&
(
this.Brandcode == input.Brandcode ||
(this.Brandcode != null &&
this.Brandcode.Equals(input.Brandcode))
);
}
/// <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.Kh != null)
hashCode = hashCode * 59 + this.Kh.GetHashCode();
if (this.Name != null)
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.Flcode != null)
hashCode = hashCode * 59 + this.Flcode.GetHashCode();
if (this.Price != null)
hashCode = hashCode * 59 + this.Price.GetHashCode();
if (this.Jldw != null)
hashCode = hashCode * 59 + this.Jldw.GetHashCode();
if (this.ZtCode != null)
hashCode = hashCode * 59 + this.ZtCode.GetHashCode();
if (this.Year != null)
hashCode = hashCode * 59 + this.Year.GetHashCode();
if (this.Brandcode != null)
hashCode = hashCode * 59 + this.Brandcode.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;
}
}
}