160 lines
5.8 KiB
C#
160 lines
5.8 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>
|
||
|
/// FaceRecoSearchRequest
|
||
|
/// </summary>
|
||
|
[DataContract]
|
||
|
public partial class FaceRecoSearchRequest : IEquatable<FaceRecoSearchRequest>, IValidatableObject
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Initializes a new instance of the <see cref="FaceRecoSearchRequest" /> class.
|
||
|
/// </summary>
|
||
|
/// <param name="startCreateTime">开始创建时间,必传.</param>
|
||
|
/// <param name="endCreateTime">结束创建时间,必传.</param>
|
||
|
/// <param name="shopCode">店铺编码,传冰芙云的店铺编码就可以了,如果查全部,则传空.</param>
|
||
|
public FaceRecoSearchRequest(DateTime? startCreateTime = default(DateTime?), DateTime? endCreateTime = default(DateTime?), string shopCode = default(string))
|
||
|
{
|
||
|
this.StartCreateTime = startCreateTime;
|
||
|
this.EndCreateTime = endCreateTime;
|
||
|
this.ShopCode = shopCode;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 开始创建时间,必传
|
||
|
/// </summary>
|
||
|
/// <value>开始创建时间,必传</value>
|
||
|
[DataMember(Name="startCreateTime", EmitDefaultValue=false)]
|
||
|
public DateTime? StartCreateTime { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 结束创建时间,必传
|
||
|
/// </summary>
|
||
|
/// <value>结束创建时间,必传</value>
|
||
|
[DataMember(Name="endCreateTime", EmitDefaultValue=false)]
|
||
|
public DateTime? EndCreateTime { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 店铺编码,传冰芙云的店铺编码就可以了,如果查全部,则传空
|
||
|
/// </summary>
|
||
|
/// <value>店铺编码,传冰芙云的店铺编码就可以了,如果查全部,则传空</value>
|
||
|
[DataMember(Name="shopCode", EmitDefaultValue=false)]
|
||
|
public string ShopCode { 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 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();
|
||
|
}
|
||
|
|
||
|
/// <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 FaceRecoSearchRequest);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Returns true if FaceRecoSearchRequest instances are equal
|
||
|
/// </summary>
|
||
|
/// <param name="input">Instance of FaceRecoSearchRequest to be compared</param>
|
||
|
/// <returns>Boolean</returns>
|
||
|
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))
|
||
|
);
|
||
|
}
|
||
|
|
||
|
/// <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.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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|