MeiSaiSiXieTongApi/IO.Swagger/Model/NcSuiteGoodsChildResp.cs
2025-04-24 18:31:27 +08:00

143 lines
4.5 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>
/// NcSuiteGoodsChildResp
/// </summary>
[DataContract]
public partial class NcSuiteGoodsChildResp : IEquatable<NcSuiteGoodsChildResp>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NcSuiteGoodsChildResp" /> class.
/// </summary>
/// <param name="tjcode">物料编码.</param>
/// <param name="tjnum">套件数量.</param>
public NcSuiteGoodsChildResp(string tjcode = default(string), double? tjnum = default(double?))
{
this.Tjcode = tjcode;
this.Tjnum = tjnum;
}
/// <summary>
/// 物料编码
/// </summary>
/// <value>物料编码</value>
[DataMember(Name="tjcode", EmitDefaultValue=false)]
public string Tjcode { get; set; }
/// <summary>
/// 套件数量
/// </summary>
/// <value>套件数量</value>
[DataMember(Name="tjnum", EmitDefaultValue=false)]
public double? Tjnum { 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 NcSuiteGoodsChildResp {\n");
sb.Append(" Tjcode: ").Append(Tjcode).Append("\n");
sb.Append(" Tjnum: ").Append(Tjnum).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 NcSuiteGoodsChildResp);
}
/// <summary>
/// Returns true if NcSuiteGoodsChildResp instances are equal
/// </summary>
/// <param name="input">Instance of NcSuiteGoodsChildResp to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NcSuiteGoodsChildResp input)
{
if (input == null)
return false;
return
(
this.Tjcode == input.Tjcode ||
(this.Tjcode != null &&
this.Tjcode.Equals(input.Tjcode))
) &&
(
this.Tjnum == input.Tjnum ||
(this.Tjnum != null &&
this.Tjnum.Equals(input.Tjnum))
);
}
/// <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.Tjcode != null)
hashCode = hashCode * 59 + this.Tjcode.GetHashCode();
if (this.Tjnum != null)
hashCode = hashCode * 59 + this.Tjnum.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;
}
}
}