2025-04-21 14:10:27 +08:00

177 lines
6.1 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 后台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>
/// FaceRecoResp
/// </summary>
[DataContract]
public partial class FaceRecoResp : IEquatable<FaceRecoResp>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="FaceRecoResp" /> class.
/// </summary>
/// <param name="faceImgUrl">脸部图片Url.</param>
/// <param name="faceId">脸部id用来标识同一个人.</param>
/// <param name="shopCode">店铺编码.</param>
/// <param name="inShopTime">进店时间.</param>
public FaceRecoResp(string faceImgUrl = default(string), string faceId = default(string), string shopCode = default(string), DateTime? inShopTime = default(DateTime?))
{
this.FaceImgUrl = faceImgUrl;
this.FaceId = faceId;
this.ShopCode = shopCode;
this.InShopTime = inShopTime;
}
/// <summary>
/// 脸部图片Url
/// </summary>
/// <value>脸部图片Url</value>
[DataMember(Name="faceImgUrl", EmitDefaultValue=false)]
public string FaceImgUrl { get; set; }
/// <summary>
/// 脸部id用来标识同一个人
/// </summary>
/// <value>脸部id用来标识同一个人</value>
[DataMember(Name="faceId", EmitDefaultValue=false)]
public string FaceId { get; set; }
/// <summary>
/// 店铺编码
/// </summary>
/// <value>店铺编码</value>
[DataMember(Name="shopCode", EmitDefaultValue=false)]
public string ShopCode { get; set; }
/// <summary>
/// 进店时间
/// </summary>
/// <value>进店时间</value>
[DataMember(Name="inShopTime", EmitDefaultValue=false)]
public DateTime? InShopTime { 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 FaceRecoResp {\n");
sb.Append(" FaceImgUrl: ").Append(FaceImgUrl).Append("\n");
sb.Append(" FaceId: ").Append(FaceId).Append("\n");
sb.Append(" ShopCode: ").Append(ShopCode).Append("\n");
sb.Append(" InShopTime: ").Append(InShopTime).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 FaceRecoResp);
}
/// <summary>
/// Returns true if FaceRecoResp instances are equal
/// </summary>
/// <param name="input">Instance of FaceRecoResp to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(FaceRecoResp input)
{
if (input == null)
return false;
return
(
this.FaceImgUrl == input.FaceImgUrl ||
(this.FaceImgUrl != null &&
this.FaceImgUrl.Equals(input.FaceImgUrl))
) &&
(
this.FaceId == input.FaceId ||
(this.FaceId != null &&
this.FaceId.Equals(input.FaceId))
) &&
(
this.ShopCode == input.ShopCode ||
(this.ShopCode != null &&
this.ShopCode.Equals(input.ShopCode))
) &&
(
this.InShopTime == input.InShopTime ||
(this.InShopTime != null &&
this.InShopTime.Equals(input.InShopTime))
);
}
/// <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.FaceImgUrl != null)
hashCode = hashCode * 59 + this.FaceImgUrl.GetHashCode();
if (this.FaceId != null)
hashCode = hashCode * 59 + this.FaceId.GetHashCode();
if (this.ShopCode != null)
hashCode = hashCode * 59 + this.ShopCode.GetHashCode();
if (this.InShopTime != null)
hashCode = hashCode * 59 + this.InShopTime.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;
}
}
}