/* * 后台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 { /// /// 分页查询类,带分页信息 /// [DataContract] public partial class PagedSearchGoodsSearchRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 查询条件. /// 每页显示行数. /// 页索引,即从第几页,从1开始. public PagedSearchGoodsSearchRequest(GoodsSearchRequest condition = default(GoodsSearchRequest), int? pageSize = default(int?), int? page = default(int?)) { this.Condition = condition; this.PageSize = pageSize; this.Page = page; } /// /// 查询条件 /// /// 查询条件 [DataMember(Name="condition", EmitDefaultValue=false)] public GoodsSearchRequest Condition { get; set; } /// /// 每页显示行数 /// /// 每页显示行数 [DataMember(Name="pageSize", EmitDefaultValue=false)] public int? PageSize { get; set; } /// /// 页索引,即从第几页,从1开始 /// /// 页索引,即从第几页,从1开始 [DataMember(Name="page", EmitDefaultValue=false)] public int? Page { 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 PagedSearchGoodsSearchRequest {\n"); sb.Append(" Condition: ").Append(Condition).Append("\n"); sb.Append(" PageSize: ").Append(PageSize).Append("\n"); sb.Append(" Page: ").Append(Page).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 PagedSearchGoodsSearchRequest); } /// /// Returns true if PagedSearchGoodsSearchRequest instances are equal /// /// Instance of PagedSearchGoodsSearchRequest to be compared /// Boolean public bool Equals(PagedSearchGoodsSearchRequest input) { if (input == null) return false; return ( this.Condition == input.Condition || (this.Condition != null && this.Condition.Equals(input.Condition)) ) && ( this.PageSize == input.PageSize || (this.PageSize != null && this.PageSize.Equals(input.PageSize)) ) && ( this.Page == input.Page || (this.Page != null && this.Page.Equals(input.Page)) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.Condition != null) hashCode = hashCode * 59 + this.Condition.GetHashCode(); if (this.PageSize != null) hashCode = hashCode * 59 + this.PageSize.GetHashCode(); if (this.Page != null) hashCode = hashCode * 59 + this.Page.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }