/* * 后台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 { /// /// NcShopInfo /// [DataContract] public partial class NcShopInfo : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 店铺名. /// 编码. /// 旧编码. /// 大区编码. /// 省份编码. /// 城市编码. /// 等级编码. /// 所属加盟商编码. public NcShopInfo(string name = default(string), string code = default(string), string oldcode = default(string), string area = default(string), string province = default(string), string city = default(string), string level = default(string), string jms = default(string)) { this.Name = name; this.Code = code; this.Oldcode = oldcode; this.Area = area; this.Province = province; this.City = city; this.Level = level; this.Jms = jms; } /// /// 店铺名 /// /// 店铺名 [DataMember(Name="name", EmitDefaultValue=false)] public string Name { get; set; } /// /// 编码 /// /// 编码 [DataMember(Name="code", EmitDefaultValue=false)] public string Code { get; set; } /// /// 旧编码 /// /// 旧编码 [DataMember(Name="oldcode", EmitDefaultValue=false)] public string Oldcode { get; set; } /// /// 大区编码 /// /// 大区编码 [DataMember(Name="area", EmitDefaultValue=false)] public string Area { get; set; } /// /// 省份编码 /// /// 省份编码 [DataMember(Name="province", EmitDefaultValue=false)] public string Province { get; set; } /// /// 城市编码 /// /// 城市编码 [DataMember(Name="city", EmitDefaultValue=false)] public string City { get; set; } /// /// 等级编码 /// /// 等级编码 [DataMember(Name="level", EmitDefaultValue=false)] public string Level { get; set; } /// /// 所属加盟商编码 /// /// 所属加盟商编码 [DataMember(Name="jms", EmitDefaultValue=false)] public string Jms { 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 NcShopInfo {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Oldcode: ").Append(Oldcode).Append("\n"); sb.Append(" Area: ").Append(Area).Append("\n"); sb.Append(" Province: ").Append(Province).Append("\n"); sb.Append(" City: ").Append(City).Append("\n"); sb.Append(" Level: ").Append(Level).Append("\n"); sb.Append(" Jms: ").Append(Jms).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 NcShopInfo); } /// /// Returns true if NcShopInfo instances are equal /// /// Instance of NcShopInfo to be compared /// Boolean public bool Equals(NcShopInfo input) { if (input == null) return false; return ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) ) && ( this.Code == input.Code || (this.Code != null && this.Code.Equals(input.Code)) ) && ( this.Oldcode == input.Oldcode || (this.Oldcode != null && this.Oldcode.Equals(input.Oldcode)) ) && ( this.Area == input.Area || (this.Area != null && this.Area.Equals(input.Area)) ) && ( this.Province == input.Province || (this.Province != null && this.Province.Equals(input.Province)) ) && ( this.City == input.City || (this.City != null && this.City.Equals(input.City)) ) && ( this.Level == input.Level || (this.Level != null && this.Level.Equals(input.Level)) ) && ( this.Jms == input.Jms || (this.Jms != null && this.Jms.Equals(input.Jms)) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.Name != null) hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this.Code != null) hashCode = hashCode * 59 + this.Code.GetHashCode(); if (this.Oldcode != null) hashCode = hashCode * 59 + this.Oldcode.GetHashCode(); if (this.Area != null) hashCode = hashCode * 59 + this.Area.GetHashCode(); if (this.Province != null) hashCode = hashCode * 59 + this.Province.GetHashCode(); if (this.City != null) hashCode = hashCode * 59 + this.City.GetHashCode(); if (this.Level != null) hashCode = hashCode * 59 + this.Level.GetHashCode(); if (this.Jms != null) hashCode = hashCode * 59 + this.Jms.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }