/*
* 后台API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: Admin
*
* 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;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
namespace IO.Swagger.Model
{
///
/// NcShopListResp
///
[DataContract]
public partial class NcShopListResp : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
///
/// 店铺编码.
/// 旧店铺编码.
/// 店铺名.
/// 手机号码.
/// 区域编码.
/// 区域名字.
/// 加盟商编码.
/// 省名.
/// 城市名.
/// 营业状态 03:停业 04:撤店 02:转让 01:正常 99:停用.
/// 状态中文.
/// 地址.
/// 联系人.
/// -1 全部 0无种类 1直营 2联营 3加盟 4 员工内购.
/// 修改时间.
/// 数据状态 3 停用状态.
public NcShopListResp(string shopCode = default(string), string oldShopCode = default(string), string shopName = default(string), string mobile = default(string), string areaCode = default(string), string areaName = default(string), string merchantCode = default(string), string state = default(string), string city = default(string), string status = default(string), string statusName = default(string), string address = default(string), string linkMan = default(string), int? shopKind = default(int?), DateTime? editTime = default(DateTime?), int? enablestate = default(int?))
{
this.ShopCode = shopCode;
this.OldShopCode = oldShopCode;
this.ShopName = shopName;
this.Mobile = mobile;
this.AreaCode = areaCode;
this.AreaName = areaName;
this.MerchantCode = merchantCode;
this.State = state;
this.City = city;
this.Status = status;
this.StatusName = statusName;
this.Address = address;
this.LinkMan = linkMan;
this.ShopKind = shopKind;
this.EditTime = editTime;
this.Enablestate = enablestate;
}
///
/// 店铺编码
///
/// 店铺编码
[DataMember(Name="shopCode", EmitDefaultValue=false)]
public string ShopCode { get; set; }
///
/// 旧店铺编码
///
/// 旧店铺编码
[DataMember(Name="oldShopCode", EmitDefaultValue=false)]
public string OldShopCode { get; set; }
///
/// 店铺名
///
/// 店铺名
[DataMember(Name="shopName", EmitDefaultValue=false)]
public string ShopName { get; set; }
///
/// 手机号码
///
/// 手机号码
[DataMember(Name="mobile", EmitDefaultValue=false)]
public string Mobile { get; set; }
///
/// 区域编码
///
/// 区域编码
[DataMember(Name="areaCode", EmitDefaultValue=false)]
public string AreaCode { get; set; }
///
/// 区域名字
///
/// 区域名字
[DataMember(Name="areaName", EmitDefaultValue=false)]
public string AreaName { get; set; }
///
/// 加盟商编码
///
/// 加盟商编码
[DataMember(Name="merchantCode", EmitDefaultValue=false)]
public string MerchantCode { get; set; }
///
/// 省名
///
/// 省名
[DataMember(Name="state", EmitDefaultValue=false)]
public string State { get; set; }
///
/// 城市名
///
/// 城市名
[DataMember(Name="city", EmitDefaultValue=false)]
public string City { get; set; }
///
/// 营业状态 03:停业 04:撤店 02:转让 01:正常 99:停用
///
/// 营业状态 03:停业 04:撤店 02:转让 01:正常 99:停用
[DataMember(Name="status", EmitDefaultValue=false)]
public string Status { get; set; }
///
/// 状态中文
///
/// 状态中文
[DataMember(Name="statusName", EmitDefaultValue=false)]
public string StatusName { get; set; }
///
/// 地址
///
/// 地址
[DataMember(Name="address", EmitDefaultValue=false)]
public string Address { get; set; }
///
/// 联系人
///
/// 联系人
[DataMember(Name="linkMan", EmitDefaultValue=false)]
public string LinkMan { get; set; }
///
/// -1 全部 0无种类 1直营 2联营 3加盟 4 员工内购
///
/// -1 全部 0无种类 1直营 2联营 3加盟 4 员工内购
[DataMember(Name="shopKind", EmitDefaultValue=false)]
public int? ShopKind { get; set; }
///
/// 修改时间
///
/// 修改时间
[DataMember(Name="editTime", EmitDefaultValue=false)]
public DateTime? EditTime { get; set; }
///
/// 数据状态 3 停用状态
///
/// 数据状态 3 停用状态
[DataMember(Name="enablestate", EmitDefaultValue=false)]
public int? Enablestate { 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 NcShopListResp {\n");
sb.Append(" ShopCode: ").Append(ShopCode).Append("\n");
sb.Append(" OldShopCode: ").Append(OldShopCode).Append("\n");
sb.Append(" ShopName: ").Append(ShopName).Append("\n");
sb.Append(" Mobile: ").Append(Mobile).Append("\n");
sb.Append(" AreaCode: ").Append(AreaCode).Append("\n");
sb.Append(" AreaName: ").Append(AreaName).Append("\n");
sb.Append(" MerchantCode: ").Append(MerchantCode).Append("\n");
sb.Append(" State: ").Append(State).Append("\n");
sb.Append(" City: ").Append(City).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" StatusName: ").Append(StatusName).Append("\n");
sb.Append(" Address: ").Append(Address).Append("\n");
sb.Append(" LinkMan: ").Append(LinkMan).Append("\n");
sb.Append(" ShopKind: ").Append(ShopKind).Append("\n");
sb.Append(" EditTime: ").Append(EditTime).Append("\n");
sb.Append(" Enablestate: ").Append(Enablestate).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
///
/// Returns the JSON string presentation of the object
///
/// JSON string presentation of the object
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
///
/// Returns true if objects are equal
///
/// Object to be compared
/// Boolean
public override bool Equals(object input)
{
return this.Equals(input as NcShopListResp);
}
///
/// Returns true if NcShopListResp instances are equal
///
/// Instance of NcShopListResp to be compared
/// Boolean
public bool Equals(NcShopListResp input)
{
if (input == null)
return false;
return
(
this.ShopCode == input.ShopCode ||
(this.ShopCode != null &&
this.ShopCode.Equals(input.ShopCode))
) &&
(
this.OldShopCode == input.OldShopCode ||
(this.OldShopCode != null &&
this.OldShopCode.Equals(input.OldShopCode))
) &&
(
this.ShopName == input.ShopName ||
(this.ShopName != null &&
this.ShopName.Equals(input.ShopName))
) &&
(
this.Mobile == input.Mobile ||
(this.Mobile != null &&
this.Mobile.Equals(input.Mobile))
) &&
(
this.AreaCode == input.AreaCode ||
(this.AreaCode != null &&
this.AreaCode.Equals(input.AreaCode))
) &&
(
this.AreaName == input.AreaName ||
(this.AreaName != null &&
this.AreaName.Equals(input.AreaName))
) &&
(
this.MerchantCode == input.MerchantCode ||
(this.MerchantCode != null &&
this.MerchantCode.Equals(input.MerchantCode))
) &&
(
this.State == input.State ||
(this.State != null &&
this.State.Equals(input.State))
) &&
(
this.City == input.City ||
(this.City != null &&
this.City.Equals(input.City))
) &&
(
this.Status == input.Status ||
(this.Status != null &&
this.Status.Equals(input.Status))
) &&
(
this.StatusName == input.StatusName ||
(this.StatusName != null &&
this.StatusName.Equals(input.StatusName))
) &&
(
this.Address == input.Address ||
(this.Address != null &&
this.Address.Equals(input.Address))
) &&
(
this.LinkMan == input.LinkMan ||
(this.LinkMan != null &&
this.LinkMan.Equals(input.LinkMan))
) &&
(
this.ShopKind == input.ShopKind ||
(this.ShopKind != null &&
this.ShopKind.Equals(input.ShopKind))
) &&
(
this.EditTime == input.EditTime ||
(this.EditTime != null &&
this.EditTime.Equals(input.EditTime))
) &&
(
this.Enablestate == input.Enablestate ||
(this.Enablestate != null &&
this.Enablestate.Equals(input.Enablestate))
);
}
///
/// Gets the hash code
///
/// Hash code
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.ShopCode != null)
hashCode = hashCode * 59 + this.ShopCode.GetHashCode();
if (this.OldShopCode != null)
hashCode = hashCode * 59 + this.OldShopCode.GetHashCode();
if (this.ShopName != null)
hashCode = hashCode * 59 + this.ShopName.GetHashCode();
if (this.Mobile != null)
hashCode = hashCode * 59 + this.Mobile.GetHashCode();
if (this.AreaCode != null)
hashCode = hashCode * 59 + this.AreaCode.GetHashCode();
if (this.AreaName != null)
hashCode = hashCode * 59 + this.AreaName.GetHashCode();
if (this.MerchantCode != null)
hashCode = hashCode * 59 + this.MerchantCode.GetHashCode();
if (this.State != null)
hashCode = hashCode * 59 + this.State.GetHashCode();
if (this.City != null)
hashCode = hashCode * 59 + this.City.GetHashCode();
if (this.Status != null)
hashCode = hashCode * 59 + this.Status.GetHashCode();
if (this.StatusName != null)
hashCode = hashCode * 59 + this.StatusName.GetHashCode();
if (this.Address != null)
hashCode = hashCode * 59 + this.Address.GetHashCode();
if (this.LinkMan != null)
hashCode = hashCode * 59 + this.LinkMan.GetHashCode();
if (this.ShopKind != null)
hashCode = hashCode * 59 + this.ShopKind.GetHashCode();
if (this.EditTime != null)
hashCode = hashCode * 59 + this.EditTime.GetHashCode();
if (this.Enablestate != null)
hashCode = hashCode * 59 + this.Enablestate.GetHashCode();
return hashCode;
}
}
///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}