/* * 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' /// /// CompanySimpleViewModel /// [DataContract] public partial class CompanySimpleViewModel : IEquatable, IValidatableObject //Mark 555 { /// /// FHT.Core.CommonTypes.CompanyMembershipType, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// /// FHT.Core.CommonTypes.CompanyMembershipType, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null [DataMember(Name="CompanyPackageType", EmitDefaultValue=false)] public CompanyMembershipTypeEnum? CompanyPackageType { get; set; } /// /// FHT.Core.CommonTypes.AuditStatus, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// /// FHT.Core.CommonTypes.AuditStatus, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null [DataMember(Name="AuditStatus", EmitDefaultValue=false)] public AuditStatusEnum? AuditStatus { get; set; } /// /// 2. Initializes a new instance of the class. /// [JsonConstructorAttribute] protected CompanySimpleViewModel() { } /// /// Not Enum: Gets or Sets CompanyId /// [DataMember(Name="CompanyId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public int? CompanyId { get; private set; } /// /// Not Enum: Gets or Sets CompanyName /// [DataMember(Name="CompanyName", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string CompanyName { get; private set; } /// /// Not Enum: Gets or Sets IsCompanyVerified /// [DataMember(Name="IsCompanyVerified", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public bool? IsCompanyVerified { get; private 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 NoShops /// [DataMember(Name="NoShops", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public bool? NoShops { get; private set; } /// /// Not Enum: Gets or Sets HasCmsFeature /// [DataMember(Name="HasCmsFeature", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public bool? HasCmsFeature { get; set; } /// /// Not Enum: Gets or Sets LogoUrl /// [DataMember(Name="LogoUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public ImageViewModel LogoUrl { get; set; } /// /// Not Enum: Gets or Sets GeoLocation /// [DataMember(Name="GeoLocation", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public GeoLocationViewModel GeoLocation { get; set; } /// /// Not Enum: Gets or Sets LastModified /// [DataMember(Name="LastModified", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public DateTime? LastModified { get; private set; } /// /// Not Enum: Gets or Sets IsActive /// [DataMember(Name="IsActive", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public bool? IsActive { get; private set; } /// /// Not Enum: Gets or Sets Fht1CompanyUrl /// [DataMember(Name="Fht1CompanyUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string Fht1CompanyUrl { get; private 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 CompanyMobileUrl /// [DataMember(Name="CompanyMobileUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string CompanyMobileUrl { get; private set; } /// /// Not Enum: Gets or Sets QrCodeUrl /// [DataMember(Name="QrCodeUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string QrCodeUrl { get; private set; } /// /// Not Enum: Gets or Sets HaveCustomerService /// [DataMember(Name="HaveCustomerService", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public bool? HaveCustomerService { get; private set; } /// /// Not Enum: Gets or Sets CompanyPackageIco /// [DataMember(Name="CompanyPackageIco", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public ImageViewModel CompanyPackageIco { get; set; } /// /// Not Enum: Gets or Sets CompanyVerifiedIco /// [DataMember(Name="CompanyVerifiedIco", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public ImageViewModel CompanyVerifiedIco { get; set; } /// /// Not Enum: Gets or Sets IsEffective /// [DataMember(Name="IsEffective", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public bool? IsEffective { get; private set; } /// /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); sb.Append("class CompanySimpleViewModel {\n"); sb.Append(" CompanyId: ").Append(CompanyId).Append("\n"); sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); sb.Append(" IsCompanyVerified: ").Append(IsCompanyVerified).Append("\n"); sb.Append(" Industry: ").Append(Industry).Append("\n"); sb.Append(" NoShops: ").Append(NoShops).Append("\n"); sb.Append(" CompanyPackageType: ").Append(CompanyPackageType).Append("\n"); sb.Append(" HasCmsFeature: ").Append(HasCmsFeature).Append("\n"); sb.Append(" LogoUrl: ").Append(LogoUrl).Append("\n"); sb.Append(" GeoLocation: ").Append(GeoLocation).Append("\n"); sb.Append(" LastModified: ").Append(LastModified).Append("\n"); sb.Append(" IsActive: ").Append(IsActive).Append("\n"); sb.Append(" AuditStatus: ").Append(AuditStatus).Append("\n"); sb.Append(" Fht1CompanyUrl: ").Append(Fht1CompanyUrl).Append("\n"); sb.Append(" CompanyUrl: ").Append(CompanyUrl).Append("\n"); sb.Append(" CompanyMobileUrl: ").Append(CompanyMobileUrl).Append("\n"); sb.Append(" QrCodeUrl: ").Append(QrCodeUrl).Append("\n"); sb.Append(" HaveCustomerService: ").Append(HaveCustomerService).Append("\n"); sb.Append(" CompanyPackageIco: ").Append(CompanyPackageIco).Append("\n"); sb.Append(" CompanyVerifiedIco: ").Append(CompanyVerifiedIco).Append("\n"); sb.Append(" IsEffective: ").Append(IsEffective).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 CompanySimpleViewModel); } /// /// Returns true if CompanySimpleViewModel instances are equal /// /// Instance of CompanySimpleViewModel to be compared /// Boolean public bool Equals(CompanySimpleViewModel other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) return false; return ( this.CompanyId == other.CompanyId || this.CompanyId != null && this.CompanyId.Equals(other.CompanyId) ) && ( this.CompanyName == other.CompanyName || this.CompanyName != null && this.CompanyName.Equals(other.CompanyName) ) && ( this.IsCompanyVerified == other.IsCompanyVerified || this.IsCompanyVerified != null && this.IsCompanyVerified.Equals(other.IsCompanyVerified) ) && ( this.Industry == other.Industry || this.Industry != null && this.Industry.Equals(other.Industry) ) && ( this.NoShops == other.NoShops || this.NoShops != null && this.NoShops.Equals(other.NoShops) ) && ( this.CompanyPackageType == other.CompanyPackageType || this.CompanyPackageType != null && this.CompanyPackageType.Equals(other.CompanyPackageType) ) && ( this.HasCmsFeature == other.HasCmsFeature || this.HasCmsFeature != null && this.HasCmsFeature.Equals(other.HasCmsFeature) ) && ( this.LogoUrl == other.LogoUrl || this.LogoUrl != null && this.LogoUrl.Equals(other.LogoUrl) ) && ( this.GeoLocation == other.GeoLocation || this.GeoLocation != null && this.GeoLocation.Equals(other.GeoLocation) ) && ( this.LastModified == other.LastModified || this.LastModified != null && this.LastModified.Equals(other.LastModified) ) && ( this.IsActive == other.IsActive || this.IsActive != null && this.IsActive.Equals(other.IsActive) ) && ( this.AuditStatus == other.AuditStatus || this.AuditStatus != null && this.AuditStatus.Equals(other.AuditStatus) ) && ( this.Fht1CompanyUrl == other.Fht1CompanyUrl || this.Fht1CompanyUrl != null && this.Fht1CompanyUrl.Equals(other.Fht1CompanyUrl) ) && ( this.CompanyUrl == other.CompanyUrl || this.CompanyUrl != null && this.CompanyUrl.Equals(other.CompanyUrl) ) && ( this.CompanyMobileUrl == other.CompanyMobileUrl || this.CompanyMobileUrl != null && this.CompanyMobileUrl.Equals(other.CompanyMobileUrl) ) && ( this.QrCodeUrl == other.QrCodeUrl || this.QrCodeUrl != null && this.QrCodeUrl.Equals(other.QrCodeUrl) ) && ( this.HaveCustomerService == other.HaveCustomerService || this.HaveCustomerService != null && this.HaveCustomerService.Equals(other.HaveCustomerService) ) && ( this.CompanyPackageIco == other.CompanyPackageIco || this.CompanyPackageIco != null && this.CompanyPackageIco.Equals(other.CompanyPackageIco) ) && ( this.CompanyVerifiedIco == other.CompanyVerifiedIco || this.CompanyVerifiedIco != null && this.CompanyVerifiedIco.Equals(other.CompanyVerifiedIco) ) && ( this.IsEffective == other.IsEffective || this.IsEffective != null && this.IsEffective.Equals(other.IsEffective) ); } /// /// 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.CompanyId != null) hash = hash * 59 + this.CompanyId.GetHashCode(); if (this.CompanyName != null) hash = hash * 59 + this.CompanyName.GetHashCode(); if (this.IsCompanyVerified != null) hash = hash * 59 + this.IsCompanyVerified.GetHashCode(); if (this.Industry != null) hash = hash * 59 + this.Industry.GetHashCode(); if (this.NoShops != null) hash = hash * 59 + this.NoShops.GetHashCode(); if (this.CompanyPackageType != null) hash = hash * 59 + this.CompanyPackageType.GetHashCode(); if (this.HasCmsFeature != null) hash = hash * 59 + this.HasCmsFeature.GetHashCode(); if (this.LogoUrl != null) hash = hash * 59 + this.LogoUrl.GetHashCode(); if (this.GeoLocation != null) hash = hash * 59 + this.GeoLocation.GetHashCode(); if (this.LastModified != null) hash = hash * 59 + this.LastModified.GetHashCode(); if (this.IsActive != null) hash = hash * 59 + this.IsActive.GetHashCode(); if (this.AuditStatus != null) hash = hash * 59 + this.AuditStatus.GetHashCode(); if (this.Fht1CompanyUrl != null) hash = hash * 59 + this.Fht1CompanyUrl.GetHashCode(); if (this.CompanyUrl != null) hash = hash * 59 + this.CompanyUrl.GetHashCode(); if (this.CompanyMobileUrl != null) hash = hash * 59 + this.CompanyMobileUrl.GetHashCode(); if (this.QrCodeUrl != null) hash = hash * 59 + this.QrCodeUrl.GetHashCode(); if (this.HaveCustomerService != null) hash = hash * 59 + this.HaveCustomerService.GetHashCode(); if (this.CompanyPackageIco != null) hash = hash * 59 + this.CompanyPackageIco.GetHashCode(); if (this.CompanyVerifiedIco != null) hash = hash * 59 + this.CompanyVerifiedIco.GetHashCode(); if (this.IsEffective != null) hash = hash * 59 + this.IsEffective.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' }