194 lines
6.6 KiB
C#
194 lines
6.6 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>
|
|
/// 成套件商品
|
|
/// </summary>
|
|
[DataContract]
|
|
public partial class NcSuiteGoodsResp : IEquatable<NcSuiteGoodsResp>, IValidatableObject
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="NcSuiteGoodsResp" /> class.
|
|
/// </summary>
|
|
/// <param name="ctjcode">成套件编码.</param>
|
|
/// <param name="ctjname">成套件名称.</param>
|
|
/// <param name="price">价格.</param>
|
|
/// <param name="htxm">条形码.</param>
|
|
/// <param name="detail">明细.</param>
|
|
public NcSuiteGoodsResp(string ctjcode = default(string), string ctjname = default(string), double? price = default(double?), string htxm = default(string), List<NcSuiteGoodsChildResp> detail = default(List<NcSuiteGoodsChildResp>))
|
|
{
|
|
this.Ctjcode = ctjcode;
|
|
this.Ctjname = ctjname;
|
|
this.Price = price;
|
|
this.Htxm = htxm;
|
|
this.Detail = detail;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 成套件编码
|
|
/// </summary>
|
|
/// <value>成套件编码</value>
|
|
[DataMember(Name="ctjcode", EmitDefaultValue=false)]
|
|
public string Ctjcode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 成套件名称
|
|
/// </summary>
|
|
/// <value>成套件名称</value>
|
|
[DataMember(Name="ctjname", EmitDefaultValue=false)]
|
|
public string Ctjname { get; set; }
|
|
|
|
/// <summary>
|
|
/// 价格
|
|
/// </summary>
|
|
/// <value>价格</value>
|
|
[DataMember(Name="price", EmitDefaultValue=false)]
|
|
public double? Price { get; set; }
|
|
|
|
/// <summary>
|
|
/// 条形码
|
|
/// </summary>
|
|
/// <value>条形码</value>
|
|
[DataMember(Name="htxm", EmitDefaultValue=false)]
|
|
public string Htxm { get; set; }
|
|
|
|
/// <summary>
|
|
/// 明细
|
|
/// </summary>
|
|
/// <value>明细</value>
|
|
[DataMember(Name="detail", EmitDefaultValue=false)]
|
|
public List<NcSuiteGoodsChildResp> 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 NcSuiteGoodsResp {\n");
|
|
sb.Append(" Ctjcode: ").Append(Ctjcode).Append("\n");
|
|
sb.Append(" Ctjname: ").Append(Ctjname).Append("\n");
|
|
sb.Append(" Price: ").Append(Price).Append("\n");
|
|
sb.Append(" Htxm: ").Append(Htxm).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 NcSuiteGoodsResp);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns true if NcSuiteGoodsResp instances are equal
|
|
/// </summary>
|
|
/// <param name="input">Instance of NcSuiteGoodsResp to be compared</param>
|
|
/// <returns>Boolean</returns>
|
|
public bool Equals(NcSuiteGoodsResp input)
|
|
{
|
|
if (input == null)
|
|
return false;
|
|
|
|
return
|
|
(
|
|
this.Ctjcode == input.Ctjcode ||
|
|
(this.Ctjcode != null &&
|
|
this.Ctjcode.Equals(input.Ctjcode))
|
|
) &&
|
|
(
|
|
this.Ctjname == input.Ctjname ||
|
|
(this.Ctjname != null &&
|
|
this.Ctjname.Equals(input.Ctjname))
|
|
) &&
|
|
(
|
|
this.Price == input.Price ||
|
|
(this.Price != null &&
|
|
this.Price.Equals(input.Price))
|
|
) &&
|
|
(
|
|
this.Htxm == input.Htxm ||
|
|
(this.Htxm != null &&
|
|
this.Htxm.Equals(input.Htxm))
|
|
) &&
|
|
(
|
|
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.Ctjcode != null)
|
|
hashCode = hashCode * 59 + this.Ctjcode.GetHashCode();
|
|
if (this.Ctjname != null)
|
|
hashCode = hashCode * 59 + this.Ctjname.GetHashCode();
|
|
if (this.Price != null)
|
|
hashCode = hashCode * 59 + this.Price.GetHashCode();
|
|
if (this.Htxm != null)
|
|
hashCode = hashCode * 59 + this.Htxm.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;
|
|
}
|
|
}
|
|
|
|
}
|