211 lines
7.8 KiB
C#
211 lines
7.8 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>
|
||
/// QiNiuText
|
||
/// </summary>
|
||
[DataContract]
|
||
public partial class QiNiuText : IEquatable<QiNiuText>, IValidatableObject
|
||
{
|
||
/// <summary>
|
||
/// Initializes a new instance of the <see cref="QiNiuText" /> class.
|
||
/// </summary>
|
||
/// <param name="distanceX">横轴边距.</param>
|
||
/// <param name="distanceY">纵轴边距.</param>
|
||
/// <param name="text">文字.</param>
|
||
/// <param name="positionType">方向类型 1:左上 2:中上 3:右上 4:左中 5:正中 6:右中 7:左下 8:中下 9:右下.</param>
|
||
/// <param name="pound">多少磅,文字大小,比如50,可以通过七牛测试调整.</param>
|
||
/// <param name="color">颜色,黑色#000000.</param>
|
||
public QiNiuText(int? distanceX = default(int?), int? distanceY = default(int?), string text = default(string), int? positionType = default(int?), int? pound = default(int?), string color = default(string))
|
||
{
|
||
this.DistanceX = distanceX;
|
||
this.DistanceY = distanceY;
|
||
this.Text = text;
|
||
this.PositionType = positionType;
|
||
this.Pound = pound;
|
||
this.Color = color;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 横轴边距
|
||
/// </summary>
|
||
/// <value>横轴边距</value>
|
||
[DataMember(Name="distanceX", EmitDefaultValue=false)]
|
||
public int? DistanceX { get; set; }
|
||
|
||
/// <summary>
|
||
/// 纵轴边距
|
||
/// </summary>
|
||
/// <value>纵轴边距</value>
|
||
[DataMember(Name="distanceY", EmitDefaultValue=false)]
|
||
public int? DistanceY { get; set; }
|
||
|
||
/// <summary>
|
||
/// 文字
|
||
/// </summary>
|
||
/// <value>文字</value>
|
||
[DataMember(Name="text", EmitDefaultValue=false)]
|
||
public string Text { get; set; }
|
||
|
||
/// <summary>
|
||
/// 方向类型 1:左上 2:中上 3:右上 4:左中 5:正中 6:右中 7:左下 8:中下 9:右下
|
||
/// </summary>
|
||
/// <value>方向类型 1:左上 2:中上 3:右上 4:左中 5:正中 6:右中 7:左下 8:中下 9:右下</value>
|
||
[DataMember(Name="positionType", EmitDefaultValue=false)]
|
||
public int? PositionType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 多少磅,文字大小,比如50,可以通过七牛测试调整
|
||
/// </summary>
|
||
/// <value>多少磅,文字大小,比如50,可以通过七牛测试调整</value>
|
||
[DataMember(Name="pound", EmitDefaultValue=false)]
|
||
public int? Pound { get; set; }
|
||
|
||
/// <summary>
|
||
/// 颜色,黑色#000000
|
||
/// </summary>
|
||
/// <value>颜色,黑色#000000</value>
|
||
[DataMember(Name="color", EmitDefaultValue=false)]
|
||
public string Color { 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 QiNiuText {\n");
|
||
sb.Append(" DistanceX: ").Append(DistanceX).Append("\n");
|
||
sb.Append(" DistanceY: ").Append(DistanceY).Append("\n");
|
||
sb.Append(" Text: ").Append(Text).Append("\n");
|
||
sb.Append(" PositionType: ").Append(PositionType).Append("\n");
|
||
sb.Append(" Pound: ").Append(Pound).Append("\n");
|
||
sb.Append(" Color: ").Append(Color).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 QiNiuText);
|
||
}
|
||
|
||
/// <summary>
|
||
/// Returns true if QiNiuText instances are equal
|
||
/// </summary>
|
||
/// <param name="input">Instance of QiNiuText to be compared</param>
|
||
/// <returns>Boolean</returns>
|
||
public bool Equals(QiNiuText input)
|
||
{
|
||
if (input == null)
|
||
return false;
|
||
|
||
return
|
||
(
|
||
this.DistanceX == input.DistanceX ||
|
||
(this.DistanceX != null &&
|
||
this.DistanceX.Equals(input.DistanceX))
|
||
) &&
|
||
(
|
||
this.DistanceY == input.DistanceY ||
|
||
(this.DistanceY != null &&
|
||
this.DistanceY.Equals(input.DistanceY))
|
||
) &&
|
||
(
|
||
this.Text == input.Text ||
|
||
(this.Text != null &&
|
||
this.Text.Equals(input.Text))
|
||
) &&
|
||
(
|
||
this.PositionType == input.PositionType ||
|
||
(this.PositionType != null &&
|
||
this.PositionType.Equals(input.PositionType))
|
||
) &&
|
||
(
|
||
this.Pound == input.Pound ||
|
||
(this.Pound != null &&
|
||
this.Pound.Equals(input.Pound))
|
||
) &&
|
||
(
|
||
this.Color == input.Color ||
|
||
(this.Color != null &&
|
||
this.Color.Equals(input.Color))
|
||
);
|
||
}
|
||
|
||
/// <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.DistanceX != null)
|
||
hashCode = hashCode * 59 + this.DistanceX.GetHashCode();
|
||
if (this.DistanceY != null)
|
||
hashCode = hashCode * 59 + this.DistanceY.GetHashCode();
|
||
if (this.Text != null)
|
||
hashCode = hashCode * 59 + this.Text.GetHashCode();
|
||
if (this.PositionType != null)
|
||
hashCode = hashCode * 59 + this.PositionType.GetHashCode();
|
||
if (this.Pound != null)
|
||
hashCode = hashCode * 59 + this.Pound.GetHashCode();
|
||
if (this.Color != null)
|
||
hashCode = hashCode * 59 + this.Color.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;
|
||
}
|
||
}
|
||
|
||
}
|