/* * 后台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 { /// /// SendLinkAct /// [DataContract] public partial class SendLinkAct : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 要发送的手机号码. /// 链接地址. /// 标题. /// 描述. /// 素材id,必填. public SendLinkAct(string mobile = default(string), string url = default(string), string title = default(string), string text = default(string), string mediaId = default(string)) { this.Mobile = mobile; this.Url = url; this.Title = title; this.Text = text; this.MediaId = mediaId; } /// /// 要发送的手机号码 /// /// 要发送的手机号码 [DataMember(Name="mobile", EmitDefaultValue=false)] public string Mobile { get; set; } /// /// 链接地址 /// /// 链接地址 [DataMember(Name="url", EmitDefaultValue=false)] public string Url { get; set; } /// /// 标题 /// /// 标题 [DataMember(Name="title", EmitDefaultValue=false)] public string Title { get; set; } /// /// 描述 /// /// 描述 [DataMember(Name="text", EmitDefaultValue=false)] public string Text { get; set; } /// /// 素材id,必填 /// /// 素材id,必填 [DataMember(Name="mediaId", EmitDefaultValue=false)] public string MediaId { 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 SendLinkAct {\n"); sb.Append(" Mobile: ").Append(Mobile).Append("\n"); sb.Append(" Url: ").Append(Url).Append("\n"); sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" Text: ").Append(Text).Append("\n"); sb.Append(" MediaId: ").Append(MediaId).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 SendLinkAct); } /// /// Returns true if SendLinkAct instances are equal /// /// Instance of SendLinkAct to be compared /// Boolean public bool Equals(SendLinkAct input) { if (input == null) return false; return ( this.Mobile == input.Mobile || (this.Mobile != null && this.Mobile.Equals(input.Mobile)) ) && ( this.Url == input.Url || (this.Url != null && this.Url.Equals(input.Url)) ) && ( this.Title == input.Title || (this.Title != null && this.Title.Equals(input.Title)) ) && ( this.Text == input.Text || (this.Text != null && this.Text.Equals(input.Text)) ) && ( this.MediaId == input.MediaId || (this.MediaId != null && this.MediaId.Equals(input.MediaId)) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.Mobile != null) hashCode = hashCode * 59 + this.Mobile.GetHashCode(); if (this.Url != null) hashCode = hashCode * 59 + this.Url.GetHashCode(); if (this.Title != null) hashCode = hashCode * 59 + this.Title.GetHashCode(); if (this.Text != null) hashCode = hashCode * 59 + this.Text.GetHashCode(); if (this.MediaId != null) hashCode = hashCode * 59 + this.MediaId.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }