194 lines
6.5 KiB
C#
194 lines
6.5 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>
|
||
/// SendLinkAct
|
||
/// </summary>
|
||
[DataContract]
|
||
public partial class SendLinkAct : IEquatable<SendLinkAct>, IValidatableObject
|
||
{
|
||
/// <summary>
|
||
/// Initializes a new instance of the <see cref="SendLinkAct" /> class.
|
||
/// </summary>
|
||
/// <param name="mobile">要发送的手机号码.</param>
|
||
/// <param name="url">链接地址.</param>
|
||
/// <param name="title">标题.</param>
|
||
/// <param name="text">描述.</param>
|
||
/// <param name="mediaId">素材id,必填.</param>
|
||
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;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 要发送的手机号码
|
||
/// </summary>
|
||
/// <value>要发送的手机号码</value>
|
||
[DataMember(Name="mobile", EmitDefaultValue=false)]
|
||
public string Mobile { get; set; }
|
||
|
||
/// <summary>
|
||
/// 链接地址
|
||
/// </summary>
|
||
/// <value>链接地址</value>
|
||
[DataMember(Name="url", EmitDefaultValue=false)]
|
||
public string Url { get; set; }
|
||
|
||
/// <summary>
|
||
/// 标题
|
||
/// </summary>
|
||
/// <value>标题</value>
|
||
[DataMember(Name="title", EmitDefaultValue=false)]
|
||
public string Title { get; set; }
|
||
|
||
/// <summary>
|
||
/// 描述
|
||
/// </summary>
|
||
/// <value>描述</value>
|
||
[DataMember(Name="text", EmitDefaultValue=false)]
|
||
public string Text { get; set; }
|
||
|
||
/// <summary>
|
||
/// 素材id,必填
|
||
/// </summary>
|
||
/// <value>素材id,必填</value>
|
||
[DataMember(Name="mediaId", EmitDefaultValue=false)]
|
||
public string MediaId { 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 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();
|
||
}
|
||
|
||
/// <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 SendLinkAct);
|
||
}
|
||
|
||
/// <summary>
|
||
/// Returns true if SendLinkAct instances are equal
|
||
/// </summary>
|
||
/// <param name="input">Instance of SendLinkAct to be compared</param>
|
||
/// <returns>Boolean</returns>
|
||
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))
|
||
);
|
||
}
|
||
|
||
/// <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.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;
|
||
}
|
||
}
|
||
|
||
/// <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;
|
||
}
|
||
}
|
||
|
||
}
|