245 lines
8.4 KiB
C#
245 lines
8.4 KiB
C#
/*
|
|
* 后台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>
|
|
/// NcShopInfo
|
|
/// </summary>
|
|
[DataContract]
|
|
public partial class NcShopInfo : IEquatable<NcShopInfo>, IValidatableObject
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="NcShopInfo" /> class.
|
|
/// </summary>
|
|
/// <param name="name">店铺名.</param>
|
|
/// <param name="code">编码.</param>
|
|
/// <param name="oldcode">旧编码.</param>
|
|
/// <param name="area">大区编码.</param>
|
|
/// <param name="province">省份编码.</param>
|
|
/// <param name="city">城市编码.</param>
|
|
/// <param name="level">等级编码.</param>
|
|
/// <param name="jms">所属加盟商编码.</param>
|
|
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;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 店铺名
|
|
/// </summary>
|
|
/// <value>店铺名</value>
|
|
[DataMember(Name="name", EmitDefaultValue=false)]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 编码
|
|
/// </summary>
|
|
/// <value>编码</value>
|
|
[DataMember(Name="code", EmitDefaultValue=false)]
|
|
public string Code { get; set; }
|
|
|
|
/// <summary>
|
|
/// 旧编码
|
|
/// </summary>
|
|
/// <value>旧编码</value>
|
|
[DataMember(Name="oldcode", EmitDefaultValue=false)]
|
|
public string Oldcode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 大区编码
|
|
/// </summary>
|
|
/// <value>大区编码</value>
|
|
[DataMember(Name="area", EmitDefaultValue=false)]
|
|
public string Area { get; set; }
|
|
|
|
/// <summary>
|
|
/// 省份编码
|
|
/// </summary>
|
|
/// <value>省份编码</value>
|
|
[DataMember(Name="province", EmitDefaultValue=false)]
|
|
public string Province { get; set; }
|
|
|
|
/// <summary>
|
|
/// 城市编码
|
|
/// </summary>
|
|
/// <value>城市编码</value>
|
|
[DataMember(Name="city", EmitDefaultValue=false)]
|
|
public string City { get; set; }
|
|
|
|
/// <summary>
|
|
/// 等级编码
|
|
/// </summary>
|
|
/// <value>等级编码</value>
|
|
[DataMember(Name="level", EmitDefaultValue=false)]
|
|
public string Level { get; set; }
|
|
|
|
/// <summary>
|
|
/// 所属加盟商编码
|
|
/// </summary>
|
|
/// <value>所属加盟商编码</value>
|
|
[DataMember(Name="jms", EmitDefaultValue=false)]
|
|
public string Jms { 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 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();
|
|
}
|
|
|
|
/// <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 NcShopInfo);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns true if NcShopInfo instances are equal
|
|
/// </summary>
|
|
/// <param name="input">Instance of NcShopInfo to be compared</param>
|
|
/// <returns>Boolean</returns>
|
|
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))
|
|
);
|
|
}
|
|
|
|
/// <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.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;
|
|
}
|
|
}
|
|
|
|
/// <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;
|
|
}
|
|
}
|
|
|
|
}
|