/* * 后台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 { /// /// OutStockGoodsResp /// [DataContract] public partial class OutStockGoodsResp : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 物料编码. /// 物料旧编码. /// 物料名. /// 单价. /// 数量. /// 1:是自用品 0:不是自用品. public OutStockGoodsResp(string code = default(string), string oldName = default(string), string name = default(string), double? unitPirce = default(double?), double? qty = default(double?), int? isSelfUseProduct = default(int?)) { this.Code = code; this.OldName = oldName; this.Name = name; this.UnitPirce = unitPirce; this.Qty = qty; this.IsSelfUseProduct = isSelfUseProduct; } /// /// 物料编码 /// /// 物料编码 [DataMember(Name="code", EmitDefaultValue=false)] public string Code { get; set; } /// /// 物料旧编码 /// /// 物料旧编码 [DataMember(Name="oldName", EmitDefaultValue=false)] public string OldName { get; set; } /// /// 物料名 /// /// 物料名 [DataMember(Name="name", EmitDefaultValue=false)] public string Name { get; set; } /// /// 单价 /// /// 单价 [DataMember(Name="unitPirce", EmitDefaultValue=false)] public double? UnitPirce { get; set; } /// /// 数量 /// /// 数量 [DataMember(Name="qty", EmitDefaultValue=false)] public double? Qty { get; set; } /// /// 1:是自用品 0:不是自用品 /// /// 1:是自用品 0:不是自用品 [DataMember(Name="isSelfUseProduct", EmitDefaultValue=false)] public int? IsSelfUseProduct { get; set; } /// /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); sb.Append("class OutStockGoodsResp {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" OldName: ").Append(OldName).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" UnitPirce: ").Append(UnitPirce).Append("\n"); sb.Append(" Qty: ").Append(Qty).Append("\n"); sb.Append(" IsSelfUseProduct: ").Append(IsSelfUseProduct).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// /// Returns true if objects are equal /// /// Object to be compared /// Boolean public override bool Equals(object input) { return this.Equals(input as OutStockGoodsResp); } /// /// Returns true if OutStockGoodsResp instances are equal /// /// Instance of OutStockGoodsResp to be compared /// Boolean public bool Equals(OutStockGoodsResp input) { if (input == null) return false; return ( this.Code == input.Code || (this.Code != null && this.Code.Equals(input.Code)) ) && ( this.OldName == input.OldName || (this.OldName != null && this.OldName.Equals(input.OldName)) ) && ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) ) && ( this.UnitPirce == input.UnitPirce || (this.UnitPirce != null && this.UnitPirce.Equals(input.UnitPirce)) ) && ( this.Qty == input.Qty || (this.Qty != null && this.Qty.Equals(input.Qty)) ) && ( this.IsSelfUseProduct == input.IsSelfUseProduct || (this.IsSelfUseProduct != null && this.IsSelfUseProduct.Equals(input.IsSelfUseProduct)) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.Code != null) hashCode = hashCode * 59 + this.Code.GetHashCode(); if (this.OldName != null) hashCode = hashCode * 59 + this.OldName.GetHashCode(); if (this.Name != null) hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this.UnitPirce != null) hashCode = hashCode * 59 + this.UnitPirce.GetHashCode(); if (this.Qty != null) hashCode = hashCode * 59 + this.Qty.GetHashCode(); if (this.IsSelfUseProduct != null) hashCode = hashCode * 59 + this.IsSelfUseProduct.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }