381 lines
15 KiB
C#
Raw Permalink Normal View History

2025-04-21 14:10:27 +08:00
/*
* 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
{
/// <summary>
/// NcShopListResp
/// </summary>
[DataContract]
public partial class NcShopListResp : IEquatable<NcShopListResp>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NcShopListResp" /> class.
/// </summary>
/// <param name="shopCode">店铺编码.</param>
/// <param name="oldShopCode">旧店铺编码.</param>
/// <param name="shopName">店铺名.</param>
/// <param name="mobile">手机号码.</param>
/// <param name="areaCode">区域编码.</param>
/// <param name="areaName">区域名字.</param>
/// <param name="merchantCode">加盟商编码.</param>
/// <param name="state">省名.</param>
/// <param name="city">城市名.</param>
/// <param name="status">营业状态 03:停业 04:撤店 02:转让 01:正常 99:停用.</param>
/// <param name="statusName">状态中文.</param>
/// <param name="address">地址.</param>
/// <param name="linkMan">联系人.</param>
/// <param name="shopKind">-1 全部 0无种类 1直营 2联营 3加盟 4 员工内购.</param>
/// <param name="editTime">修改时间.</param>
/// <param name="enablestate">数据状态 3 停用状态.</param>
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;
}
/// <summary>
/// 店铺编码
/// </summary>
/// <value>店铺编码</value>
[DataMember(Name="shopCode", EmitDefaultValue=false)]
public string ShopCode { get; set; }
/// <summary>
/// 旧店铺编码
/// </summary>
/// <value>旧店铺编码</value>
[DataMember(Name="oldShopCode", EmitDefaultValue=false)]
public string OldShopCode { get; set; }
/// <summary>
/// 店铺名
/// </summary>
/// <value>店铺名</value>
[DataMember(Name="shopName", EmitDefaultValue=false)]
public string ShopName { get; set; }
/// <summary>
/// 手机号码
/// </summary>
/// <value>手机号码</value>
[DataMember(Name="mobile", EmitDefaultValue=false)]
public string Mobile { get; set; }
/// <summary>
/// 区域编码
/// </summary>
/// <value>区域编码</value>
[DataMember(Name="areaCode", EmitDefaultValue=false)]
public string AreaCode { get; set; }
/// <summary>
/// 区域名字
/// </summary>
/// <value>区域名字</value>
[DataMember(Name="areaName", EmitDefaultValue=false)]
public string AreaName { get; set; }
/// <summary>
/// 加盟商编码
/// </summary>
/// <value>加盟商编码</value>
[DataMember(Name="merchantCode", EmitDefaultValue=false)]
public string MerchantCode { get; set; }
/// <summary>
/// 省名
/// </summary>
/// <value>省名</value>
[DataMember(Name="state", EmitDefaultValue=false)]
public string State { get; set; }
/// <summary>
/// 城市名
/// </summary>
/// <value>城市名</value>
[DataMember(Name="city", EmitDefaultValue=false)]
public string City { get; set; }
/// <summary>
/// 营业状态 03:停业 04:撤店 02:转让 01:正常 99:停用
/// </summary>
/// <value>营业状态 03:停业 04:撤店 02:转让 01:正常 99:停用</value>
[DataMember(Name="status", EmitDefaultValue=false)]
public string Status { get; set; }
/// <summary>
/// 状态中文
/// </summary>
/// <value>状态中文</value>
[DataMember(Name="statusName", EmitDefaultValue=false)]
public string StatusName { get; set; }
/// <summary>
/// 地址
/// </summary>
/// <value>地址</value>
[DataMember(Name="address", EmitDefaultValue=false)]
public string Address { get; set; }
/// <summary>
/// 联系人
/// </summary>
/// <value>联系人</value>
[DataMember(Name="linkMan", EmitDefaultValue=false)]
public string LinkMan { get; set; }
/// <summary>
/// -1 全部 0无种类 1直营 2联营 3加盟 4 员工内购
/// </summary>
/// <value>-1 全部 0无种类 1直营 2联营 3加盟 4 员工内购</value>
[DataMember(Name="shopKind", EmitDefaultValue=false)]
public int? ShopKind { get; set; }
/// <summary>
/// 修改时间
/// </summary>
/// <value>修改时间</value>
[DataMember(Name="editTime", EmitDefaultValue=false)]
public DateTime? EditTime { get; set; }
/// <summary>
/// 数据状态 3 停用状态
/// </summary>
/// <value>数据状态 3 停用状态</value>
[DataMember(Name="enablestate", EmitDefaultValue=false)]
public int? Enablestate { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
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();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as NcShopListResp);
}
/// <summary>
/// Returns true if NcShopListResp instances are equal
/// </summary>
/// <param name="input">Instance of NcShopListResp to be compared</param>
/// <returns>Boolean</returns>
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))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
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;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}