/*
* 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'
///
/// NearCompanyViewModel
///
[DataContract]
public partial class NearCompanyViewModel : 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; }
///
/// 2. Initializes a new instance of the class.
///
[JsonConstructorAttribute]
protected NearCompanyViewModel() { }
///
/// 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 CompanyName
///
[DataMember(Name="CompanyName", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string CompanyName { get; set; }
///
/// Not Enum: Gets or Sets IndustryName
///
[DataMember(Name="IndustryName", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string IndustryName { get; set; }
///
/// Not Enum: Gets or Sets RegionName
///
[DataMember(Name="RegionName", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public string RegionName { 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 LogoUrl
///
[DataMember(Name="LogoUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public ImageViewModel LogoUrl { get; 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 Products
///
[DataMember(Name="Products", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {}
public List Products { 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; }
///
/// Returns the string presentation of the object
///
/// String presentation of the object
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class NearCompanyViewModel {\n");
sb.Append(" CompanyId: ").Append(CompanyId).Append("\n");
sb.Append(" CompanyName: ").Append(CompanyName).Append("\n");
sb.Append(" IndustryName: ").Append(IndustryName).Append("\n");
sb.Append(" RegionName: ").Append(RegionName).Append("\n");
sb.Append(" IsCompanyVerified: ").Append(IsCompanyVerified).Append("\n");
sb.Append(" LogoUrl: ").Append(LogoUrl).Append("\n");
sb.Append(" CompanyPackageType: ").Append(CompanyPackageType).Append("\n");
sb.Append(" CompanyPackageIco: ").Append(CompanyPackageIco).Append("\n");
sb.Append(" CompanyVerifiedIco: ").Append(CompanyVerifiedIco).Append("\n");
sb.Append(" Products: ").Append(Products).Append("\n");
sb.Append(" CompanyUrl: ").Append(CompanyUrl).Append("\n");
sb.Append(" CompanyMobileUrl: ").Append(CompanyMobileUrl).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 NearCompanyViewModel);
}
///
/// Returns true if NearCompanyViewModel instances are equal
///
/// Instance of NearCompanyViewModel to be compared
/// Boolean
public bool Equals(NearCompanyViewModel 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.IndustryName == other.IndustryName ||
this.IndustryName != null &&
this.IndustryName.Equals(other.IndustryName)
) &&
(
this.RegionName == other.RegionName ||
this.RegionName != null &&
this.RegionName.Equals(other.RegionName)
) &&
(
this.IsCompanyVerified == other.IsCompanyVerified ||
this.IsCompanyVerified != null &&
this.IsCompanyVerified.Equals(other.IsCompanyVerified)
) &&
(
this.LogoUrl == other.LogoUrl ||
this.LogoUrl != null &&
this.LogoUrl.Equals(other.LogoUrl)
) &&
(
this.CompanyPackageType == other.CompanyPackageType ||
this.CompanyPackageType != null &&
this.CompanyPackageType.Equals(other.CompanyPackageType)
) &&
(
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.Products == other.Products ||
this.Products != null &&
this.Products.SequenceEqual(other.Products)
) &&
(
this.CompanyUrl == other.CompanyUrl ||
this.CompanyUrl != null &&
this.CompanyUrl.Equals(other.CompanyUrl)
) &&
(
this.CompanyMobileUrl == other.CompanyMobileUrl ||
this.CompanyMobileUrl != null &&
this.CompanyMobileUrl.Equals(other.CompanyMobileUrl)
);
}
///
/// 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.IndustryName != null)
hash = hash * 59 + this.IndustryName.GetHashCode();
if (this.RegionName != null)
hash = hash * 59 + this.RegionName.GetHashCode();
if (this.IsCompanyVerified != null)
hash = hash * 59 + this.IsCompanyVerified.GetHashCode();
if (this.LogoUrl != null)
hash = hash * 59 + this.LogoUrl.GetHashCode();
if (this.CompanyPackageType != null)
hash = hash * 59 + this.CompanyPackageType.GetHashCode();
if (this.CompanyPackageIco != null)
hash = hash * 59 + this.CompanyPackageIco.GetHashCode();
if (this.CompanyVerifiedIco != null)
hash = hash * 59 + this.CompanyVerifiedIco.GetHashCode();
if (this.Products != null)
hash = hash * 59 + this.Products.GetHashCode();
if (this.CompanyUrl != null)
hash = hash * 59 + this.CompanyUrl.GetHashCode();
if (this.CompanyMobileUrl != null)
hash = hash * 59 + this.CompanyMobileUrl.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'
}