/*
* 后台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
{
///
/// QiNiuPicCompose
///
[DataContract]
public partial class QiNiuPicCompose : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
///
/// 底图,传七牛的路径,这里需要带http,比如:share_image_demo.png,目前是借助于wuxingcdn.guoko.com这里的七牛图片处理,前面不用加/.
/// 传一组http可以外网的图片.
/// 传一组文字对象.
public QiNiuPicCompose(string backGroundUrl = default(string), List listImg = default(List), List listText = default(List))
{
this.BackGroundUrl = backGroundUrl;
this.ListImg = listImg;
this.ListText = listText;
}
///
/// 底图,传七牛的路径,这里需要带http,比如:share_image_demo.png,目前是借助于wuxingcdn.guoko.com这里的七牛图片处理,前面不用加/
///
/// 底图,传七牛的路径,这里需要带http,比如:share_image_demo.png,目前是借助于wuxingcdn.guoko.com这里的七牛图片处理,前面不用加/
[DataMember(Name="backGroundUrl", EmitDefaultValue=false)]
public string BackGroundUrl { get; set; }
///
/// 传一组http可以外网的图片
///
/// 传一组http可以外网的图片
[DataMember(Name="listImg", EmitDefaultValue=false)]
public List ListImg { get; set; }
///
/// 传一组文字对象
///
/// 传一组文字对象
[DataMember(Name="listText", EmitDefaultValue=false)]
public List ListText { 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 QiNiuPicCompose {\n");
sb.Append(" BackGroundUrl: ").Append(BackGroundUrl).Append("\n");
sb.Append(" ListImg: ").Append(ListImg).Append("\n");
sb.Append(" ListText: ").Append(ListText).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 QiNiuPicCompose);
}
///
/// Returns true if QiNiuPicCompose instances are equal
///
/// Instance of QiNiuPicCompose to be compared
/// Boolean
public bool Equals(QiNiuPicCompose input)
{
if (input == null)
return false;
return
(
this.BackGroundUrl == input.BackGroundUrl ||
(this.BackGroundUrl != null &&
this.BackGroundUrl.Equals(input.BackGroundUrl))
) &&
(
this.ListImg == input.ListImg ||
this.ListImg != null &&
this.ListImg.SequenceEqual(input.ListImg)
) &&
(
this.ListText == input.ListText ||
this.ListText != null &&
this.ListText.SequenceEqual(input.ListText)
);
}
///
/// Gets the hash code
///
/// Hash code
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.BackGroundUrl != null)
hashCode = hashCode * 59 + this.BackGroundUrl.GetHashCode();
if (this.ListImg != null)
hashCode = hashCode * 59 + this.ListImg.GetHashCode();
if (this.ListText != null)
hashCode = hashCode * 59 + this.ListText.GetHashCode();
return hashCode;
}
}
///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}