/*
* 后台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
{
///
/// QiNiuText
///
[DataContract]
public partial class QiNiuText : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
///
/// 横轴边距.
/// 纵轴边距.
/// 文字.
/// 方向类型 1:左上 2:中上 3:右上 4:左中 5:正中 6:右中 7:左下 8:中下 9:右下.
/// 多少磅,文字大小,比如50,可以通过七牛测试调整.
/// 颜色,黑色#000000.
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;
}
///
/// 横轴边距
///
/// 横轴边距
[DataMember(Name="distanceX", EmitDefaultValue=false)]
public int? DistanceX { get; set; }
///
/// 纵轴边距
///
/// 纵轴边距
[DataMember(Name="distanceY", EmitDefaultValue=false)]
public int? DistanceY { get; set; }
///
/// 文字
///
/// 文字
[DataMember(Name="text", EmitDefaultValue=false)]
public string Text { get; set; }
///
/// 方向类型 1:左上 2:中上 3:右上 4:左中 5:正中 6:右中 7:左下 8:中下 9:右下
///
/// 方向类型 1:左上 2:中上 3:右上 4:左中 5:正中 6:右中 7:左下 8:中下 9:右下
[DataMember(Name="positionType", EmitDefaultValue=false)]
public int? PositionType { get; set; }
///
/// 多少磅,文字大小,比如50,可以通过七牛测试调整
///
/// 多少磅,文字大小,比如50,可以通过七牛测试调整
[DataMember(Name="pound", EmitDefaultValue=false)]
public int? Pound { get; set; }
///
/// 颜色,黑色#000000
///
/// 颜色,黑色#000000
[DataMember(Name="color", EmitDefaultValue=false)]
public string Color { 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 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();
}
///
/// 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 QiNiuText);
}
///
/// Returns true if QiNiuText instances are equal
///
/// Instance of QiNiuText to be compared
/// Boolean
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))
);
}
///
/// Gets the hash code
///
/// Hash code
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;
}
}
///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}