MeiSaiSiXieTongApi/IO.Swagger/Model/QiNiuPicCompose.cs
2025-04-24 18:31:27 +08:00

160 lines
5.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 后台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>
/// QiNiuPicCompose
/// </summary>
[DataContract]
public partial class QiNiuPicCompose : IEquatable<QiNiuPicCompose>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="QiNiuPicCompose" /> class.
/// </summary>
/// <param name="backGroundUrl">底图传七牛的路径这里需要带http比如:share_image_demo.png,目前是借助于wuxingcdn.guoko.com这里的七牛图片处理前面不用加/.</param>
/// <param name="listImg">传一组http可以外网的图片.</param>
/// <param name="listText">传一组文字对象.</param>
public QiNiuPicCompose(string backGroundUrl = default(string), List<QiNiuImage> listImg = default(List<QiNiuImage>), List<QiNiuText> listText = default(List<QiNiuText>))
{
this.BackGroundUrl = backGroundUrl;
this.ListImg = listImg;
this.ListText = listText;
}
/// <summary>
/// 底图传七牛的路径这里需要带http比如:share_image_demo.png,目前是借助于wuxingcdn.guoko.com这里的七牛图片处理前面不用加/
/// </summary>
/// <value>底图传七牛的路径这里需要带http比如:share_image_demo.png,目前是借助于wuxingcdn.guoko.com这里的七牛图片处理前面不用加/</value>
[DataMember(Name="backGroundUrl", EmitDefaultValue=false)]
public string BackGroundUrl { get; set; }
/// <summary>
/// 传一组http可以外网的图片
/// </summary>
/// <value>传一组http可以外网的图片</value>
[DataMember(Name="listImg", EmitDefaultValue=false)]
public List<QiNiuImage> ListImg { get; set; }
/// <summary>
/// 传一组文字对象
/// </summary>
/// <value>传一组文字对象</value>
[DataMember(Name="listText", EmitDefaultValue=false)]
public List<QiNiuText> ListText { 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 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();
}
/// <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 QiNiuPicCompose);
}
/// <summary>
/// Returns true if QiNiuPicCompose instances are equal
/// </summary>
/// <param name="input">Instance of QiNiuPicCompose to be compared</param>
/// <returns>Boolean</returns>
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)
);
}
/// <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.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;
}
}
/// <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;
}
}
}