143 lines
4.6 KiB
C#
143 lines
4.6 KiB
C#
/*
|
|
* 微信小程序端API
|
|
*
|
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
*
|
|
* OpenAPI spec version: Wechat
|
|
*
|
|
* 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>
|
|
/// NcGoodsStockInfo
|
|
/// </summary>
|
|
[DataContract]
|
|
public partial class NcGoodsStockInfo : IEquatable<NcGoodsStockInfo>, IValidatableObject
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="NcGoodsStockInfo" /> class.
|
|
/// </summary>
|
|
/// <param name="nonhandnum">现存量.</param>
|
|
/// <param name="natpnum">可用量.</param>
|
|
public NcGoodsStockInfo(int? nonhandnum = default(int?), int? natpnum = default(int?))
|
|
{
|
|
this.Nonhandnum = nonhandnum;
|
|
this.Natpnum = natpnum;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 现存量
|
|
/// </summary>
|
|
/// <value>现存量</value>
|
|
[DataMember(Name="nonhandnum", EmitDefaultValue=false)]
|
|
public int? Nonhandnum { get; set; }
|
|
|
|
/// <summary>
|
|
/// 可用量
|
|
/// </summary>
|
|
/// <value>可用量</value>
|
|
[DataMember(Name="natpnum", EmitDefaultValue=false)]
|
|
public int? Natpnum { 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 NcGoodsStockInfo {\n");
|
|
sb.Append(" Nonhandnum: ").Append(Nonhandnum).Append("\n");
|
|
sb.Append(" Natpnum: ").Append(Natpnum).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 NcGoodsStockInfo);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns true if NcGoodsStockInfo instances are equal
|
|
/// </summary>
|
|
/// <param name="input">Instance of NcGoodsStockInfo to be compared</param>
|
|
/// <returns>Boolean</returns>
|
|
public bool Equals(NcGoodsStockInfo input)
|
|
{
|
|
if (input == null)
|
|
return false;
|
|
|
|
return
|
|
(
|
|
this.Nonhandnum == input.Nonhandnum ||
|
|
(this.Nonhandnum != null &&
|
|
this.Nonhandnum.Equals(input.Nonhandnum))
|
|
) &&
|
|
(
|
|
this.Natpnum == input.Natpnum ||
|
|
(this.Natpnum != null &&
|
|
this.Natpnum.Equals(input.Natpnum))
|
|
);
|
|
}
|
|
|
|
/// <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.Nonhandnum != null)
|
|
hashCode = hashCode * 59 + this.Nonhandnum.GetHashCode();
|
|
if (this.Natpnum != null)
|
|
hashCode = hashCode * 59 + this.Natpnum.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;
|
|
}
|
|
}
|
|
|
|
}
|