/*
* 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'
///
/// MyCompanyProfileViewModel
///
[DataContract]
public partial class MyCompanyProfileViewModel : IEquatable, IValidatableObject //Mark 555
{
///
/// 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; }
///
/// 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; }
///
/// 2. Initializes a new instance of the class.
///
[JsonConstructorAttribute]
protected MyCompanyProfileViewModel() { }
///
/// 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 Name
///
[DataMember(Name="Name", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string Name { get; set; }
///
/// Not Enum: Gets or Sets Content
///
[DataMember(Name="Content", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public ContentViewModel Content { get; set; }
///
/// Not Enum: Gets or Sets MainBusiness
///
[DataMember(Name="MainBusiness", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string MainBusiness { 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 LicenseUrl
///
[DataMember(Name="LicenseUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string LicenseUrl { 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 IsActive
///
[DataMember(Name="IsActive", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false}
public bool? IsActive { get; set; }
///
/// Not Enum: Gets or Sets NoShops
///
[DataMember(Name="NoShops", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false}
public bool? NoShops { get; set; }
///
/// Not Enum: Gets or Sets FounderId
///
[DataMember(Name="FounderId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false}
public int? FounderId { 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 IsCompanyVerified
///
[DataMember(Name="IsCompanyVerified", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false}
public bool? IsCompanyVerified { get; set; }
///
/// Not Enum: Gets or Sets VerifiedIconUrl
///
[DataMember(Name="VerifiedIconUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string VerifiedIconUrl { get; 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 CompanyPackageTypeImageUrl
///
[DataMember(Name="CompanyPackageTypeImageUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string CompanyPackageTypeImageUrl { 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 MetaKeyword
///
[DataMember(Name="MetaKeyword", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string MetaKeyword { get; 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 MetaDescription
///
[DataMember(Name="MetaDescription", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string MetaDescription { get; set; }
///
/// Not Enum: Gets or Sets RegionSiteEnabled
///
[DataMember(Name="RegionSiteEnabled", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false}
public bool? RegionSiteEnabled { 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 LastModified
///
[DataMember(Name="LastModified", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false}
public DateTime? LastModified { get; 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 IsCompanyInfoPerfect
///
[DataMember(Name="IsCompanyInfoPerfect", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false}
public bool? IsCompanyInfoPerfect { get; private set; }
///
/// Not Enum: Gets or Sets IsVip
///
[DataMember(Name="IsVip", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false}
public bool? IsVip { get; private set; }
///
/// Not Enum: Gets or Sets Fht1CompanyUrl
///
[DataMember(Name="Fht1CompanyUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string Fht1CompanyUrl { get; set; }
///
/// Not Enum: Gets or Sets ShowMembersInShops
///
[DataMember(Name="ShowMembersInShops", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false}
public bool? ShowMembersInShops { 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 MyCompanyProfileViewModel {\n");
sb.Append(" CompanyId: ").Append(CompanyId).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Content: ").Append(Content).Append("\n");
sb.Append(" MainBusiness: ").Append(MainBusiness).Append("\n");
sb.Append(" CoverPicture: ").Append(CoverPicture).Append("\n");
sb.Append(" LicenseUrl: ").Append(LicenseUrl).Append("\n");
sb.Append(" Region: ").Append(Region).Append("\n");
sb.Append(" Address: ").Append(Address).Append("\n");
sb.Append(" IsActive: ").Append(IsActive).Append("\n");
sb.Append(" AuditStatus: ").Append(AuditStatus).Append("\n");
sb.Append(" NoShops: ").Append(NoShops).Append("\n");
sb.Append(" FounderId: ").Append(FounderId).Append("\n");
sb.Append(" LogoUrl: ").Append(LogoUrl).Append("\n");
sb.Append(" IsCompanyVerified: ").Append(IsCompanyVerified).Append("\n");
sb.Append(" VerifiedIconUrl: ").Append(VerifiedIconUrl).Append("\n");
sb.Append(" CompanyPackageType: ").Append(CompanyPackageType).Append("\n");
sb.Append(" HasCmsFeature: ").Append(HasCmsFeature).Append("\n");
sb.Append(" CompanyPackageTypeImageUrl: ").Append(CompanyPackageTypeImageUrl).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(" MetaKeyword: ").Append(MetaKeyword).Append("\n");
sb.Append(" MetaTitle: ").Append(MetaTitle).Append("\n");
sb.Append(" MetaDescription: ").Append(MetaDescription).Append("\n");
sb.Append(" RegionSiteEnabled: ").Append(RegionSiteEnabled).Append("\n");
sb.Append(" Industry: ").Append(Industry).Append("\n");
sb.Append(" CompanyContactInfo: ").Append(CompanyContactInfo).Append("\n");
sb.Append(" LastModified: ").Append(LastModified).Append("\n");
sb.Append(" QrCodeUrl: ").Append(QrCodeUrl).Append("\n");
sb.Append(" IsCompanyInfoPerfect: ").Append(IsCompanyInfoPerfect).Append("\n");
sb.Append(" IsVip: ").Append(IsVip).Append("\n");
sb.Append(" Fht1CompanyUrl: ").Append(Fht1CompanyUrl).Append("\n");
sb.Append(" ShowMembersInShops: ").Append(ShowMembersInShops).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 MyCompanyProfileViewModel);
}
///
/// Returns true if MyCompanyProfileViewModel instances are equal
///
/// Instance of MyCompanyProfileViewModel to be compared
/// Boolean
public bool Equals(MyCompanyProfileViewModel 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.Name == other.Name ||
this.Name != null &&
this.Name.Equals(other.Name)
) &&
(
this.Content == other.Content ||
this.Content != null &&
this.Content.Equals(other.Content)
) &&
(
this.MainBusiness == other.MainBusiness ||
this.MainBusiness != null &&
this.MainBusiness.Equals(other.MainBusiness)
) &&
(
this.CoverPicture == other.CoverPicture ||
this.CoverPicture != null &&
this.CoverPicture.Equals(other.CoverPicture)
) &&
(
this.LicenseUrl == other.LicenseUrl ||
this.LicenseUrl != null &&
this.LicenseUrl.Equals(other.LicenseUrl)
) &&
(
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.IsActive == other.IsActive ||
this.IsActive != null &&
this.IsActive.Equals(other.IsActive)
) &&
(
this.AuditStatus == other.AuditStatus ||
this.AuditStatus != null &&
this.AuditStatus.Equals(other.AuditStatus)
) &&
(
this.NoShops == other.NoShops ||
this.NoShops != null &&
this.NoShops.Equals(other.NoShops)
) &&
(
this.FounderId == other.FounderId ||
this.FounderId != null &&
this.FounderId.Equals(other.FounderId)
) &&
(
this.LogoUrl == other.LogoUrl ||
this.LogoUrl != null &&
this.LogoUrl.Equals(other.LogoUrl)
) &&
(
this.IsCompanyVerified == other.IsCompanyVerified ||
this.IsCompanyVerified != null &&
this.IsCompanyVerified.Equals(other.IsCompanyVerified)
) &&
(
this.VerifiedIconUrl == other.VerifiedIconUrl ||
this.VerifiedIconUrl != null &&
this.VerifiedIconUrl.Equals(other.VerifiedIconUrl)
) &&
(
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.CompanyPackageTypeImageUrl == other.CompanyPackageTypeImageUrl ||
this.CompanyPackageTypeImageUrl != null &&
this.CompanyPackageTypeImageUrl.Equals(other.CompanyPackageTypeImageUrl)
) &&
(
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.MetaKeyword == other.MetaKeyword ||
this.MetaKeyword != null &&
this.MetaKeyword.Equals(other.MetaKeyword)
) &&
(
this.MetaTitle == other.MetaTitle ||
this.MetaTitle != null &&
this.MetaTitle.Equals(other.MetaTitle)
) &&
(
this.MetaDescription == other.MetaDescription ||
this.MetaDescription != null &&
this.MetaDescription.Equals(other.MetaDescription)
) &&
(
this.RegionSiteEnabled == other.RegionSiteEnabled ||
this.RegionSiteEnabled != null &&
this.RegionSiteEnabled.Equals(other.RegionSiteEnabled)
) &&
(
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.LastModified == other.LastModified ||
this.LastModified != null &&
this.LastModified.Equals(other.LastModified)
) &&
(
this.QrCodeUrl == other.QrCodeUrl ||
this.QrCodeUrl != null &&
this.QrCodeUrl.Equals(other.QrCodeUrl)
) &&
(
this.IsCompanyInfoPerfect == other.IsCompanyInfoPerfect ||
this.IsCompanyInfoPerfect != null &&
this.IsCompanyInfoPerfect.Equals(other.IsCompanyInfoPerfect)
) &&
(
this.IsVip == other.IsVip ||
this.IsVip != null &&
this.IsVip.Equals(other.IsVip)
) &&
(
this.Fht1CompanyUrl == other.Fht1CompanyUrl ||
this.Fht1CompanyUrl != null &&
this.Fht1CompanyUrl.Equals(other.Fht1CompanyUrl)
) &&
(
this.ShowMembersInShops == other.ShowMembersInShops ||
this.ShowMembersInShops != null &&
this.ShowMembersInShops.Equals(other.ShowMembersInShops)
);
}
///
/// 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.Name != null)
hash = hash * 59 + this.Name.GetHashCode();
if (this.Content != null)
hash = hash * 59 + this.Content.GetHashCode();
if (this.MainBusiness != null)
hash = hash * 59 + this.MainBusiness.GetHashCode();
if (this.CoverPicture != null)
hash = hash * 59 + this.CoverPicture.GetHashCode();
if (this.LicenseUrl != null)
hash = hash * 59 + this.LicenseUrl.GetHashCode();
if (this.Region != null)
hash = hash * 59 + this.Region.GetHashCode();
if (this.Address != null)
hash = hash * 59 + this.Address.GetHashCode();
if (this.IsActive != null)
hash = hash * 59 + this.IsActive.GetHashCode();
if (this.AuditStatus != null)
hash = hash * 59 + this.AuditStatus.GetHashCode();
if (this.NoShops != null)
hash = hash * 59 + this.NoShops.GetHashCode();
if (this.FounderId != null)
hash = hash * 59 + this.FounderId.GetHashCode();
if (this.LogoUrl != null)
hash = hash * 59 + this.LogoUrl.GetHashCode();
if (this.IsCompanyVerified != null)
hash = hash * 59 + this.IsCompanyVerified.GetHashCode();
if (this.VerifiedIconUrl != null)
hash = hash * 59 + this.VerifiedIconUrl.GetHashCode();
if (this.CompanyPackageType != null)
hash = hash * 59 + this.CompanyPackageType.GetHashCode();
if (this.HasCmsFeature != null)
hash = hash * 59 + this.HasCmsFeature.GetHashCode();
if (this.CompanyPackageTypeImageUrl != null)
hash = hash * 59 + this.CompanyPackageTypeImageUrl.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.MetaKeyword != null)
hash = hash * 59 + this.MetaKeyword.GetHashCode();
if (this.MetaTitle != null)
hash = hash * 59 + this.MetaTitle.GetHashCode();
if (this.MetaDescription != null)
hash = hash * 59 + this.MetaDescription.GetHashCode();
if (this.RegionSiteEnabled != null)
hash = hash * 59 + this.RegionSiteEnabled.GetHashCode();
if (this.Industry != null)
hash = hash * 59 + this.Industry.GetHashCode();
if (this.CompanyContactInfo != null)
hash = hash * 59 + this.CompanyContactInfo.GetHashCode();
if (this.LastModified != null)
hash = hash * 59 + this.LastModified.GetHashCode();
if (this.QrCodeUrl != null)
hash = hash * 59 + this.QrCodeUrl.GetHashCode();
if (this.IsCompanyInfoPerfect != null)
hash = hash * 59 + this.IsCompanyInfoPerfect.GetHashCode();
if (this.IsVip != null)
hash = hash * 59 + this.IsVip.GetHashCode();
if (this.Fht1CompanyUrl != null)
hash = hash * 59 + this.Fht1CompanyUrl.GetHashCode();
if (this.ShowMembersInShops != null)
hash = hash * 59 + this.ShowMembersInShops.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'
}