/* * 后台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 { /// /// FaceRecoSearchRequest /// [DataContract] public partial class FaceRecoSearchRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 开始创建时间,必传. /// 结束创建时间,必传. /// 店铺编码,传冰芙云的店铺编码就可以了,如果查全部,则传空. public FaceRecoSearchRequest(DateTime? startCreateTime = default(DateTime?), DateTime? endCreateTime = default(DateTime?), string shopCode = default(string)) { this.StartCreateTime = startCreateTime; this.EndCreateTime = endCreateTime; this.ShopCode = shopCode; } /// /// 开始创建时间,必传 /// /// 开始创建时间,必传 [DataMember(Name="startCreateTime", EmitDefaultValue=false)] public DateTime? StartCreateTime { get; set; } /// /// 结束创建时间,必传 /// /// 结束创建时间,必传 [DataMember(Name="endCreateTime", EmitDefaultValue=false)] public DateTime? EndCreateTime { get; set; } /// /// 店铺编码,传冰芙云的店铺编码就可以了,如果查全部,则传空 /// /// 店铺编码,传冰芙云的店铺编码就可以了,如果查全部,则传空 [DataMember(Name="shopCode", EmitDefaultValue=false)] public string ShopCode { 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 FaceRecoSearchRequest {\n"); sb.Append(" StartCreateTime: ").Append(StartCreateTime).Append("\n"); sb.Append(" EndCreateTime: ").Append(EndCreateTime).Append("\n"); sb.Append(" ShopCode: ").Append(ShopCode).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 FaceRecoSearchRequest); } /// /// Returns true if FaceRecoSearchRequest instances are equal /// /// Instance of FaceRecoSearchRequest to be compared /// Boolean public bool Equals(FaceRecoSearchRequest input) { if (input == null) return false; return ( this.StartCreateTime == input.StartCreateTime || (this.StartCreateTime != null && this.StartCreateTime.Equals(input.StartCreateTime)) ) && ( this.EndCreateTime == input.EndCreateTime || (this.EndCreateTime != null && this.EndCreateTime.Equals(input.EndCreateTime)) ) && ( this.ShopCode == input.ShopCode || (this.ShopCode != null && this.ShopCode.Equals(input.ShopCode)) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.StartCreateTime != null) hashCode = hashCode * 59 + this.StartCreateTime.GetHashCode(); if (this.EndCreateTime != null) hashCode = hashCode * 59 + this.EndCreateTime.GetHashCode(); if (this.ShopCode != null) hashCode = hashCode * 59 + this.ShopCode.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }