/*
* 后台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
{
///
/// PageResultNcGoodsListInfo
///
[DataContract]
public partial class PageResultNcGoodsListInfo : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
///
/// 分页查询中的记录总数.
/// 分页查询中结果集合.
public PageResultNcGoodsListInfo(int? total = default(int?), List dataList = default(List))
{
this.Total = total;
this.DataList = dataList;
}
///
/// 分页查询中的记录总数
///
/// 分页查询中的记录总数
[DataMember(Name="total", EmitDefaultValue=false)]
public int? Total { get; set; }
///
/// 分页查询中结果集合
///
/// 分页查询中结果集合
[DataMember(Name="dataList", EmitDefaultValue=false)]
public List DataList { 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 PageResultNcGoodsListInfo {\n");
sb.Append(" Total: ").Append(Total).Append("\n");
sb.Append(" DataList: ").Append(DataList).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 PageResultNcGoodsListInfo);
}
///
/// Returns true if PageResultNcGoodsListInfo instances are equal
///
/// Instance of PageResultNcGoodsListInfo to be compared
/// Boolean
public bool Equals(PageResultNcGoodsListInfo input)
{
if (input == null)
return false;
return
(
this.Total == input.Total ||
(this.Total != null &&
this.Total.Equals(input.Total))
) &&
(
this.DataList == input.DataList ||
this.DataList != null &&
this.DataList.SequenceEqual(input.DataList)
);
}
///
/// Gets the hash code
///
/// Hash code
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Total != null)
hashCode = hashCode * 59 + this.Total.GetHashCode();
if (this.DataList != null)
hashCode = hashCode * 59 + this.DataList.GetHashCode();
return hashCode;
}
}
///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}