2025-04-24 18:31:27 +08:00

329 lines
12 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 后台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>
/// NcSkuListInfo
/// </summary>
[DataContract]
public partial class NcSkuListInfo : IEquatable<NcSkuListInfo>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NcSkuListInfo" /> class.
/// </summary>
/// <param name="kh">款号.</param>
/// <param name="name">名称.</param>
/// <param name="price">吊牌价.</param>
/// <param name="txm">txm.</param>
/// <param name="code">编码.</param>
/// <param name="color">色号.</param>
/// <param name="flCode">分类代码.</param>
/// <param name="year">年份.</param>
/// <param name="jldwname">计量单位名称.</param>
/// <param name="size">规格.</param>
/// <param name="everyQty">每个里面数量.</param>
/// <param name="isScanAsGroup">1:按组套件扫描 0不按组.</param>
/// <param name="detail">明细接口.</param>
public NcSkuListInfo(string kh = default(string), string name = default(string), string price = default(string), string txm = default(string), string code = default(string), string color = default(string), string flCode = default(string), string year = default(string), string jldwname = default(string), string size = default(string), int? everyQty = default(int?), int? isScanAsGroup = default(int?), List<NcSkuDetail> detail = default(List<NcSkuDetail>))
{
this.Kh = kh;
this.Name = name;
this.Price = price;
this.Txm = txm;
this.Code = code;
this.Color = color;
this.FlCode = flCode;
this.Year = year;
this.Jldwname = jldwname;
this.Size = size;
this.EveryQty = everyQty;
this.IsScanAsGroup = isScanAsGroup;
this.Detail = detail;
}
/// <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="price", EmitDefaultValue=false)]
public string Price { get; set; }
/// <summary>
/// Gets or Sets Txm
/// </summary>
[DataMember(Name="txm", EmitDefaultValue=false)]
public string Txm { get; set; }
/// <summary>
/// 编码
/// </summary>
/// <value>编码</value>
[DataMember(Name="code", EmitDefaultValue=false)]
public string Code { get; set; }
/// <summary>
/// 色号
/// </summary>
/// <value>色号</value>
[DataMember(Name="color", EmitDefaultValue=false)]
public string Color { get; set; }
/// <summary>
/// 分类代码
/// </summary>
/// <value>分类代码</value>
[DataMember(Name="flCode", EmitDefaultValue=false)]
public string FlCode { get; set; }
/// <summary>
/// 年份
/// </summary>
/// <value>年份</value>
[DataMember(Name="year", EmitDefaultValue=false)]
public string Year { get; set; }
/// <summary>
/// 计量单位名称
/// </summary>
/// <value>计量单位名称</value>
[DataMember(Name="jldwname", EmitDefaultValue=false)]
public string Jldwname { get; set; }
/// <summary>
/// 规格
/// </summary>
/// <value>规格</value>
[DataMember(Name="size", EmitDefaultValue=false)]
public string Size { get; set; }
/// <summary>
/// 每个里面数量
/// </summary>
/// <value>每个里面数量</value>
[DataMember(Name="everyQty", EmitDefaultValue=false)]
public int? EveryQty { get; set; }
/// <summary>
/// 1:按组套件扫描 0不按组
/// </summary>
/// <value>1:按组套件扫描 0不按组</value>
[DataMember(Name="isScanAsGroup", EmitDefaultValue=false)]
public int? IsScanAsGroup { get; set; }
/// <summary>
/// 明细接口
/// </summary>
/// <value>明细接口</value>
[DataMember(Name="detail", EmitDefaultValue=false)]
public List<NcSkuDetail> Detail { 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 NcSkuListInfo {\n");
sb.Append(" Kh: ").Append(Kh).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Price: ").Append(Price).Append("\n");
sb.Append(" Txm: ").Append(Txm).Append("\n");
sb.Append(" Code: ").Append(Code).Append("\n");
sb.Append(" Color: ").Append(Color).Append("\n");
sb.Append(" FlCode: ").Append(FlCode).Append("\n");
sb.Append(" Year: ").Append(Year).Append("\n");
sb.Append(" Jldwname: ").Append(Jldwname).Append("\n");
sb.Append(" Size: ").Append(Size).Append("\n");
sb.Append(" EveryQty: ").Append(EveryQty).Append("\n");
sb.Append(" IsScanAsGroup: ").Append(IsScanAsGroup).Append("\n");
sb.Append(" Detail: ").Append(Detail).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 NcSkuListInfo);
}
/// <summary>
/// Returns true if NcSkuListInfo instances are equal
/// </summary>
/// <param name="input">Instance of NcSkuListInfo to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NcSkuListInfo 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.Price == input.Price ||
(this.Price != null &&
this.Price.Equals(input.Price))
) &&
(
this.Txm == input.Txm ||
(this.Txm != null &&
this.Txm.Equals(input.Txm))
) &&
(
this.Code == input.Code ||
(this.Code != null &&
this.Code.Equals(input.Code))
) &&
(
this.Color == input.Color ||
(this.Color != null &&
this.Color.Equals(input.Color))
) &&
(
this.FlCode == input.FlCode ||
(this.FlCode != null &&
this.FlCode.Equals(input.FlCode))
) &&
(
this.Year == input.Year ||
(this.Year != null &&
this.Year.Equals(input.Year))
) &&
(
this.Jldwname == input.Jldwname ||
(this.Jldwname != null &&
this.Jldwname.Equals(input.Jldwname))
) &&
(
this.Size == input.Size ||
(this.Size != null &&
this.Size.Equals(input.Size))
) &&
(
this.EveryQty == input.EveryQty ||
(this.EveryQty != null &&
this.EveryQty.Equals(input.EveryQty))
) &&
(
this.IsScanAsGroup == input.IsScanAsGroup ||
(this.IsScanAsGroup != null &&
this.IsScanAsGroup.Equals(input.IsScanAsGroup))
) &&
(
this.Detail == input.Detail ||
this.Detail != null &&
this.Detail.SequenceEqual(input.Detail)
);
}
/// <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.Price != null)
hashCode = hashCode * 59 + this.Price.GetHashCode();
if (this.Txm != null)
hashCode = hashCode * 59 + this.Txm.GetHashCode();
if (this.Code != null)
hashCode = hashCode * 59 + this.Code.GetHashCode();
if (this.Color != null)
hashCode = hashCode * 59 + this.Color.GetHashCode();
if (this.FlCode != null)
hashCode = hashCode * 59 + this.FlCode.GetHashCode();
if (this.Year != null)
hashCode = hashCode * 59 + this.Year.GetHashCode();
if (this.Jldwname != null)
hashCode = hashCode * 59 + this.Jldwname.GetHashCode();
if (this.Size != null)
hashCode = hashCode * 59 + this.Size.GetHashCode();
if (this.EveryQty != null)
hashCode = hashCode * 59 + this.EveryQty.GetHashCode();
if (this.IsScanAsGroup != null)
hashCode = hashCode * 59 + this.IsScanAsGroup.GetHashCode();
if (this.Detail != null)
hashCode = hashCode * 59 + this.Detail.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;
}
}
}