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

143 lines
4.8 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>
/// 批量上传图片到七牛
/// </summary>
[DataContract]
public partial class UploadBatchRemoteFileAct : IEquatable<UploadBatchRemoteFileAct>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="UploadBatchRemoteFileAct" /> class.
/// </summary>
/// <param name="listImgUrl">一组图片.</param>
/// <param name="domain">域名如果存在则需要拼凑ListImgUrl里面.</param>
public UploadBatchRemoteFileAct(List<string> listImgUrl = default(List<string>), string domain = default(string))
{
this.ListImgUrl = listImgUrl;
this.Domain = domain;
}
/// <summary>
/// 一组图片
/// </summary>
/// <value>一组图片</value>
[DataMember(Name="listImgUrl", EmitDefaultValue=false)]
public List<string> ListImgUrl { get; set; }
/// <summary>
/// 域名如果存在则需要拼凑ListImgUrl里面
/// </summary>
/// <value>域名如果存在则需要拼凑ListImgUrl里面</value>
[DataMember(Name="domain", EmitDefaultValue=false)]
public string Domain { 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 UploadBatchRemoteFileAct {\n");
sb.Append(" ListImgUrl: ").Append(ListImgUrl).Append("\n");
sb.Append(" Domain: ").Append(Domain).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 UploadBatchRemoteFileAct);
}
/// <summary>
/// Returns true if UploadBatchRemoteFileAct instances are equal
/// </summary>
/// <param name="input">Instance of UploadBatchRemoteFileAct to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(UploadBatchRemoteFileAct input)
{
if (input == null)
return false;
return
(
this.ListImgUrl == input.ListImgUrl ||
this.ListImgUrl != null &&
this.ListImgUrl.SequenceEqual(input.ListImgUrl)
) &&
(
this.Domain == input.Domain ||
(this.Domain != null &&
this.Domain.Equals(input.Domain))
);
}
/// <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.ListImgUrl != null)
hashCode = hashCode * 59 + this.ListImgUrl.GetHashCode();
if (this.Domain != null)
hashCode = hashCode * 59 + this.Domain.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;
}
}
}