/* * FHT.Core.API 1.0 * * ̨group.apiVersion:1.0 * * OpenAPI spec version: v1 * Contact: fht@fht360.com * 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; namespace IO.Swagger.Model { #pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' /// /// CompanyAuthenticationViewModel /// [DataContract] public partial class CompanyAuthenticationViewModel : IEquatable, IValidatableObject //Mark 555 { /// /// FHT.Core.CommonTypes.ProcessingStatus, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// /// FHT.Core.CommonTypes.ProcessingStatus, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null [DataMember(Name="Status", EmitDefaultValue=false)] public ProcessingStatusEnum? Status { get; set; } /// /// 2. Initializes a new instance of the class. /// [JsonConstructorAttribute] protected CompanyAuthenticationViewModel() { } /// /// Not Enum: Gets or Sets AuthenticationId /// [DataMember(Name="AuthenticationId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public int? AuthenticationId { get; set; } /// /// Not Enum: Gets or Sets ApplicantId /// [DataMember(Name="ApplicantId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public int? ApplicantId { get; set; } /// /// Not Enum: Gets or Sets CompanyId /// [DataMember(Name="CompanyId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public int? CompanyId { get; set; } /// /// Not Enum: Gets or Sets Applicant /// [DataMember(Name="Applicant", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-display-name=申请人} public string Applicant { get; set; } /// /// Not Enum: Gets or Sets IdCardNumber /// [DataMember(Name="IdCardNumber", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-display-name=身份证号} public string IdCardNumber { get; set; } /// /// Not Enum: Gets or Sets PhotoIdUrl /// [DataMember(Name="PhotoIdUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-display-name=身份证附件} public string PhotoIdUrl { get; set; } /// /// Not Enum: Gets or Sets BackPhotoIdUrl /// [DataMember(Name="BackPhotoIdUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-display-name=身份证背面附件} public string BackPhotoIdUrl { get; set; } /// /// Not Enum: Gets or Sets LicenseNo /// [DataMember(Name="LicenseNo", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-display-name=营业执照号} public string LicenseNo { get; set; } /// /// Not Enum: Gets or Sets LicenseUrl /// [DataMember(Name="LicenseUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-display-name=营业执照附件} public string LicenseUrl { get; set; } /// /// Not Enum: Gets or Sets Capital /// [DataMember(Name="Capital", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-display-name=注册资金, x-isnullable=true} public int? Capital { get; set; } /// /// Not Enum: Gets or Sets StatusDisplayString /// [DataMember(Name="StatusDisplayString", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string StatusDisplayString { get; private set; } /// /// Not Enum: Gets or Sets CreatedTime /// [DataMember(Name="CreatedTime", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public DateTime? CreatedTime { get; set; } /// /// Not Enum: Gets or Sets AuditTime /// [DataMember(Name="AuditTime", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public DateTime? AuditTime { get; set; } /// /// Not Enum: Gets or Sets Remark /// [DataMember(Name="Remark", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-display-name=备注} public string Remark { 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 CompanyAuthenticationViewModel {\n"); sb.Append(" AuthenticationId: ").Append(AuthenticationId).Append("\n"); sb.Append(" ApplicantId: ").Append(ApplicantId).Append("\n"); sb.Append(" CompanyId: ").Append(CompanyId).Append("\n"); sb.Append(" Applicant: ").Append(Applicant).Append("\n"); sb.Append(" IdCardNumber: ").Append(IdCardNumber).Append("\n"); sb.Append(" PhotoIdUrl: ").Append(PhotoIdUrl).Append("\n"); sb.Append(" BackPhotoIdUrl: ").Append(BackPhotoIdUrl).Append("\n"); sb.Append(" LicenseNo: ").Append(LicenseNo).Append("\n"); sb.Append(" LicenseUrl: ").Append(LicenseUrl).Append("\n"); sb.Append(" Capital: ").Append(Capital).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" StatusDisplayString: ").Append(StatusDisplayString).Append("\n"); sb.Append(" CreatedTime: ").Append(CreatedTime).Append("\n"); sb.Append(" AuditTime: ").Append(AuditTime).Append("\n"); sb.Append(" Remark: ").Append(Remark).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// /// Returns true if objects are equal /// /// Object to be compared /// Boolean public override bool Equals(object obj) { // credit: http://stackoverflow.com/a/10454552/677735 return this.Equals(obj as CompanyAuthenticationViewModel); } /// /// Returns true if CompanyAuthenticationViewModel instances are equal /// /// Instance of CompanyAuthenticationViewModel to be compared /// Boolean public bool Equals(CompanyAuthenticationViewModel other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) return false; return ( this.AuthenticationId == other.AuthenticationId || this.AuthenticationId != null && this.AuthenticationId.Equals(other.AuthenticationId) ) && ( this.ApplicantId == other.ApplicantId || this.ApplicantId != null && this.ApplicantId.Equals(other.ApplicantId) ) && ( this.CompanyId == other.CompanyId || this.CompanyId != null && this.CompanyId.Equals(other.CompanyId) ) && ( this.Applicant == other.Applicant || this.Applicant != null && this.Applicant.Equals(other.Applicant) ) && ( this.IdCardNumber == other.IdCardNumber || this.IdCardNumber != null && this.IdCardNumber.Equals(other.IdCardNumber) ) && ( this.PhotoIdUrl == other.PhotoIdUrl || this.PhotoIdUrl != null && this.PhotoIdUrl.Equals(other.PhotoIdUrl) ) && ( this.BackPhotoIdUrl == other.BackPhotoIdUrl || this.BackPhotoIdUrl != null && this.BackPhotoIdUrl.Equals(other.BackPhotoIdUrl) ) && ( this.LicenseNo == other.LicenseNo || this.LicenseNo != null && this.LicenseNo.Equals(other.LicenseNo) ) && ( this.LicenseUrl == other.LicenseUrl || this.LicenseUrl != null && this.LicenseUrl.Equals(other.LicenseUrl) ) && ( this.Capital == other.Capital || this.Capital != null && this.Capital.Equals(other.Capital) ) && ( this.Status == other.Status || this.Status != null && this.Status.Equals(other.Status) ) && ( this.StatusDisplayString == other.StatusDisplayString || this.StatusDisplayString != null && this.StatusDisplayString.Equals(other.StatusDisplayString) ) && ( this.CreatedTime == other.CreatedTime || this.CreatedTime != null && this.CreatedTime.Equals(other.CreatedTime) ) && ( this.AuditTime == other.AuditTime || this.AuditTime != null && this.AuditTime.Equals(other.AuditTime) ) && ( this.Remark == other.Remark || this.Remark != null && this.Remark.Equals(other.Remark) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks etc, of course :) if (this.AuthenticationId != null) hash = hash * 59 + this.AuthenticationId.GetHashCode(); if (this.ApplicantId != null) hash = hash * 59 + this.ApplicantId.GetHashCode(); if (this.CompanyId != null) hash = hash * 59 + this.CompanyId.GetHashCode(); if (this.Applicant != null) hash = hash * 59 + this.Applicant.GetHashCode(); if (this.IdCardNumber != null) hash = hash * 59 + this.IdCardNumber.GetHashCode(); if (this.PhotoIdUrl != null) hash = hash * 59 + this.PhotoIdUrl.GetHashCode(); if (this.BackPhotoIdUrl != null) hash = hash * 59 + this.BackPhotoIdUrl.GetHashCode(); if (this.LicenseNo != null) hash = hash * 59 + this.LicenseNo.GetHashCode(); if (this.LicenseUrl != null) hash = hash * 59 + this.LicenseUrl.GetHashCode(); if (this.Capital != null) hash = hash * 59 + this.Capital.GetHashCode(); if (this.Status != null) hash = hash * 59 + this.Status.GetHashCode(); if (this.StatusDisplayString != null) hash = hash * 59 + this.StatusDisplayString.GetHashCode(); if (this.CreatedTime != null) hash = hash * 59 + this.CreatedTime.GetHashCode(); if (this.AuditTime != null) hash = hash * 59 + this.AuditTime.GetHashCode(); if (this.Remark != null) hash = hash * 59 + this.Remark.GetHashCode(); return hash; } } public IEnumerable Validate(ValidationContext validationContext) { yield break; } } #pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' }