/* * 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' /// /// SearchCompanyViewModel /// [DataContract] public partial class SearchCompanyViewModel : IEquatable, IValidatableObject //Mark 555 { /// /// FHT.Core.CommonTypes.ApplyRequestStatus, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// /// FHT.Core.CommonTypes.ApplyRequestStatus, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null [DataMember(Name="ApplyRequestStatus", EmitDefaultValue=false)] public ApplyRequestStatusEnum? ApplyRequestStatus { get; set; } /// /// 2. Initializes a new instance of the class. /// [JsonConstructorAttribute] protected SearchCompanyViewModel() { } /// /// Not Enum: Gets or Sets Company /// [DataMember(Name="Company", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public CompanySimpleViewModel Company { get; set; } /// /// Not Enum: Gets or Sets CoverPicture /// [DataMember(Name="CoverPicture", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public ImageViewModel CoverPicture { get; set; } /// /// Not Enum: Gets or Sets Region /// [DataMember(Name="Region", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public RegionViewModel Region { get; set; } /// /// Not Enum: Gets or Sets Address /// [DataMember(Name="Address", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string Address { get; set; } /// /// Not Enum: Gets or Sets EffectiveTime /// [DataMember(Name="EffectiveTime", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public DateTime? EffectiveTime { get; set; } /// /// Not Enum: Gets or Sets ExpireTime /// [DataMember(Name="ExpireTime", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public DateTime? ExpireTime { get; set; } /// /// Not Enum: Gets or Sets Telephone /// [DataMember(Name="Telephone", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string Telephone { get; set; } /// /// Not Enum: Gets or Sets Mobile /// [DataMember(Name="Mobile", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string Mobile { get; set; } /// /// Not Enum: Gets or Sets Industry /// [DataMember(Name="Industry", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public IndustryViewModel Industry { get; set; } /// /// Not Enum: Gets or Sets CompanyContactInfo /// [DataMember(Name="CompanyContactInfo", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public CompanyContactInfoViewModel CompanyContactInfo { get; set; } /// /// Not Enum: Gets or Sets CompanyUrl /// [DataMember(Name="CompanyUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string CompanyUrl { get; private set; } /// /// Not Enum: Gets or Sets MetaTitle /// [DataMember(Name="MetaTitle", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string MetaTitle { get; set; } /// /// Not Enum: Gets or Sets MetaKeyword /// [DataMember(Name="MetaKeyword", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string MetaKeyword { get; set; } /// /// Not Enum: Gets or Sets MetaDescription /// [DataMember(Name="MetaDescription", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string MetaDescription { get; set; } /// /// Not Enum: Gets or Sets CompanyMemberCount /// [DataMember(Name="CompanyMemberCount", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public int? CompanyMemberCount { get; set; } /// /// Not Enum: Gets or Sets Longitude /// [DataMember(Name="Longitude", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public double? Longitude { get; set; } /// /// Not Enum: Gets or Sets Latitude /// [DataMember(Name="Latitude", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public double? Latitude { 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 SearchCompanyViewModel {\n"); sb.Append(" Company: ").Append(Company).Append("\n"); sb.Append(" CoverPicture: ").Append(CoverPicture).Append("\n"); sb.Append(" Region: ").Append(Region).Append("\n"); sb.Append(" Address: ").Append(Address).Append("\n"); sb.Append(" EffectiveTime: ").Append(EffectiveTime).Append("\n"); sb.Append(" ExpireTime: ").Append(ExpireTime).Append("\n"); sb.Append(" Telephone: ").Append(Telephone).Append("\n"); sb.Append(" Mobile: ").Append(Mobile).Append("\n"); sb.Append(" Industry: ").Append(Industry).Append("\n"); sb.Append(" CompanyContactInfo: ").Append(CompanyContactInfo).Append("\n"); sb.Append(" ApplyRequestStatus: ").Append(ApplyRequestStatus).Append("\n"); sb.Append(" CompanyUrl: ").Append(CompanyUrl).Append("\n"); sb.Append(" MetaTitle: ").Append(MetaTitle).Append("\n"); sb.Append(" MetaKeyword: ").Append(MetaKeyword).Append("\n"); sb.Append(" MetaDescription: ").Append(MetaDescription).Append("\n"); sb.Append(" CompanyMemberCount: ").Append(CompanyMemberCount).Append("\n"); sb.Append(" Longitude: ").Append(Longitude).Append("\n"); sb.Append(" Latitude: ").Append(Latitude).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 SearchCompanyViewModel); } /// /// Returns true if SearchCompanyViewModel instances are equal /// /// Instance of SearchCompanyViewModel to be compared /// Boolean public bool Equals(SearchCompanyViewModel other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) return false; return ( this.Company == other.Company || this.Company != null && this.Company.Equals(other.Company) ) && ( this.CoverPicture == other.CoverPicture || this.CoverPicture != null && this.CoverPicture.Equals(other.CoverPicture) ) && ( this.Region == other.Region || this.Region != null && this.Region.Equals(other.Region) ) && ( this.Address == other.Address || this.Address != null && this.Address.Equals(other.Address) ) && ( this.EffectiveTime == other.EffectiveTime || this.EffectiveTime != null && this.EffectiveTime.Equals(other.EffectiveTime) ) && ( this.ExpireTime == other.ExpireTime || this.ExpireTime != null && this.ExpireTime.Equals(other.ExpireTime) ) && ( this.Telephone == other.Telephone || this.Telephone != null && this.Telephone.Equals(other.Telephone) ) && ( this.Mobile == other.Mobile || this.Mobile != null && this.Mobile.Equals(other.Mobile) ) && ( this.Industry == other.Industry || this.Industry != null && this.Industry.Equals(other.Industry) ) && ( this.CompanyContactInfo == other.CompanyContactInfo || this.CompanyContactInfo != null && this.CompanyContactInfo.Equals(other.CompanyContactInfo) ) && ( this.ApplyRequestStatus == other.ApplyRequestStatus || this.ApplyRequestStatus != null && this.ApplyRequestStatus.Equals(other.ApplyRequestStatus) ) && ( this.CompanyUrl == other.CompanyUrl || this.CompanyUrl != null && this.CompanyUrl.Equals(other.CompanyUrl) ) && ( this.MetaTitle == other.MetaTitle || this.MetaTitle != null && this.MetaTitle.Equals(other.MetaTitle) ) && ( this.MetaKeyword == other.MetaKeyword || this.MetaKeyword != null && this.MetaKeyword.Equals(other.MetaKeyword) ) && ( this.MetaDescription == other.MetaDescription || this.MetaDescription != null && this.MetaDescription.Equals(other.MetaDescription) ) && ( this.CompanyMemberCount == other.CompanyMemberCount || this.CompanyMemberCount != null && this.CompanyMemberCount.Equals(other.CompanyMemberCount) ) && ( this.Longitude == other.Longitude || this.Longitude != null && this.Longitude.Equals(other.Longitude) ) && ( this.Latitude == other.Latitude || this.Latitude != null && this.Latitude.Equals(other.Latitude) ); } /// /// 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.Company != null) hash = hash * 59 + this.Company.GetHashCode(); if (this.CoverPicture != null) hash = hash * 59 + this.CoverPicture.GetHashCode(); if (this.Region != null) hash = hash * 59 + this.Region.GetHashCode(); if (this.Address != null) hash = hash * 59 + this.Address.GetHashCode(); if (this.EffectiveTime != null) hash = hash * 59 + this.EffectiveTime.GetHashCode(); if (this.ExpireTime != null) hash = hash * 59 + this.ExpireTime.GetHashCode(); if (this.Telephone != null) hash = hash * 59 + this.Telephone.GetHashCode(); if (this.Mobile != null) hash = hash * 59 + this.Mobile.GetHashCode(); if (this.Industry != null) hash = hash * 59 + this.Industry.GetHashCode(); if (this.CompanyContactInfo != null) hash = hash * 59 + this.CompanyContactInfo.GetHashCode(); if (this.ApplyRequestStatus != null) hash = hash * 59 + this.ApplyRequestStatus.GetHashCode(); if (this.CompanyUrl != null) hash = hash * 59 + this.CompanyUrl.GetHashCode(); if (this.MetaTitle != null) hash = hash * 59 + this.MetaTitle.GetHashCode(); if (this.MetaKeyword != null) hash = hash * 59 + this.MetaKeyword.GetHashCode(); if (this.MetaDescription != null) hash = hash * 59 + this.MetaDescription.GetHashCode(); if (this.CompanyMemberCount != null) hash = hash * 59 + this.CompanyMemberCount.GetHashCode(); if (this.Longitude != null) hash = hash * 59 + this.Longitude.GetHashCode(); if (this.Latitude != null) hash = hash * 59 + this.Latitude.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' }