/*
* 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'
///
/// CompanyDetailViewModel
///
[DataContract]
public partial class CompanyDetailViewModel : IEquatable, IValidatableObject //Mark 555
{
///
/// 2. Initializes a new instance of the class.
///
[JsonConstructorAttribute]
protected CompanyDetailViewModel() { }
///
/// Not Enum: Gets or Sets Company
///
[DataMember(Name="Company", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public CompanySimpleViewModel Company { 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 Region
///
[DataMember(Name="Region", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public RegionViewModel Region { 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 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 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 CompanyMobileUrl
///
[DataMember(Name="CompanyMobileUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string CompanyMobileUrl { 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 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=true}
public double? Latitude { get; set; }
///
/// Not Enum: Gets or Sets MemberYear
///
[DataMember(Name="MemberYear", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true}
public int? MemberYear { 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 CompanyDetailViewModel {\n");
sb.Append(" Company: ").Append(Company).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(" Region: ").Append(Region).Append("\n");
sb.Append(" LicenseUrl: ").Append(LicenseUrl).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(" Industry: ").Append(Industry).Append("\n");
sb.Append(" CompanyContactInfo: ").Append(CompanyContactInfo).Append("\n");
sb.Append(" CompanyUrl: ").Append(CompanyUrl).Append("\n");
sb.Append(" CompanyMobileUrl: ").Append(CompanyMobileUrl).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(" Longitude: ").Append(Longitude).Append("\n");
sb.Append(" Latitude: ").Append(Latitude).Append("\n");
sb.Append(" MemberYear: ").Append(MemberYear).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 CompanyDetailViewModel);
}
///
/// Returns true if CompanyDetailViewModel instances are equal
///
/// Instance of CompanyDetailViewModel to be compared
/// Boolean
public bool Equals(CompanyDetailViewModel 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.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.Region == other.Region ||
this.Region != null &&
this.Region.Equals(other.Region)
) &&
(
this.LicenseUrl == other.LicenseUrl ||
this.LicenseUrl != null &&
this.LicenseUrl.Equals(other.LicenseUrl)
) &&
(
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.Industry == other.Industry ||
this.Industry != null &&
this.Industry.Equals(other.Industry)
) &&
(
this.CompanyContactInfo == other.CompanyContactInfo ||
this.CompanyContactInfo != null &&
this.CompanyContactInfo.Equals(other.CompanyContactInfo)
) &&
(
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.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.Longitude == other.Longitude ||
this.Longitude != null &&
this.Longitude.Equals(other.Longitude)
) &&
(
this.Latitude == other.Latitude ||
this.Latitude != null &&
this.Latitude.Equals(other.Latitude)
) &&
(
this.MemberYear == other.MemberYear ||
this.MemberYear != null &&
this.MemberYear.Equals(other.MemberYear)
);
}
///
/// 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.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.Region != null)
hash = hash * 59 + this.Region.GetHashCode();
if (this.LicenseUrl != null)
hash = hash * 59 + this.LicenseUrl.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.Industry != null)
hash = hash * 59 + this.Industry.GetHashCode();
if (this.CompanyContactInfo != null)
hash = hash * 59 + this.CompanyContactInfo.GetHashCode();
if (this.CompanyUrl != null)
hash = hash * 59 + this.CompanyUrl.GetHashCode();
if (this.CompanyMobileUrl != null)
hash = hash * 59 + this.CompanyMobileUrl.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.Longitude != null)
hash = hash * 59 + this.Longitude.GetHashCode();
if (this.Latitude != null)
hash = hash * 59 + this.Latitude.GetHashCode();
if (this.MemberYear != null)
hash = hash * 59 + this.MemberYear.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'
}