/* * FHT.Core.API 1.0 * * ̨group.apiVersion:1.0 * * OpenAPI spec version: v1 * Contact: fht@fht360.com * 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; namespace IO.Swagger.Model { #pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' /// /// TouristChatOtherViewModel /// [DataContract] public partial class TouristChatOtherViewModel : IEquatable, IValidatableObject //Mark 555 { /// /// 2. Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TouristChatOtherViewModel() { } /// /// Not Enum: Gets or Sets TouristChatId /// [DataMember(Name="TouristChatId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public long? TouristChatId { get; set; } /// /// Not Enum: Gets or Sets ConversationId /// [DataMember(Name="ConversationId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string ConversationId { get; private set; } /// /// Not Enum: Gets or Sets CreatedTime /// [DataMember(Name="CreatedTime", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public DateTime? CreatedTime { get; set; } /// /// Not Enum: Gets or Sets TouristId /// [DataMember(Name="TouristId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public Guid? TouristId { get; set; } /// /// Not Enum: Gets or Sets NoDisturb /// [DataMember(Name="NoDisturb", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public bool? NoDisturb { get; set; } /// /// Not Enum: Gets or Sets IsBlocked /// [DataMember(Name="IsBlocked", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public bool? IsBlocked { get; set; } /// /// Not Enum: Gets or Sets IsTop /// [DataMember(Name="IsTop", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public bool? IsTop { get; set; } /// /// Not Enum: Gets or Sets Alias /// [DataMember(Name="Alias", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string Alias { get; set; } /// /// Not Enum: Gets or Sets AvatarUrl /// [DataMember(Name="AvatarUrl", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public ImageViewModel AvatarUrl { get; set; } /// /// Not Enum: Gets or Sets TransferUserId /// [DataMember(Name="TransferUserId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public int? TransferUserId { get; set; } /// /// Not Enum: Gets or Sets FromChatId /// [DataMember(Name="FromChatId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public long? FromChatId { get; set; } /// /// Not Enum: Gets or Sets LastMessageId /// [DataMember(Name="LastMessageId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string LastMessageId { 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 TouristChatOtherViewModel {\n"); sb.Append(" TouristChatId: ").Append(TouristChatId).Append("\n"); sb.Append(" ConversationId: ").Append(ConversationId).Append("\n"); sb.Append(" CreatedTime: ").Append(CreatedTime).Append("\n"); sb.Append(" TouristId: ").Append(TouristId).Append("\n"); sb.Append(" NoDisturb: ").Append(NoDisturb).Append("\n"); sb.Append(" IsBlocked: ").Append(IsBlocked).Append("\n"); sb.Append(" IsTop: ").Append(IsTop).Append("\n"); sb.Append(" Alias: ").Append(Alias).Append("\n"); sb.Append(" AvatarUrl: ").Append(AvatarUrl).Append("\n"); sb.Append(" TransferUserId: ").Append(TransferUserId).Append("\n"); sb.Append(" FromChatId: ").Append(FromChatId).Append("\n"); sb.Append(" LastMessageId: ").Append(LastMessageId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// /// Returns true if objects are equal /// /// Object to be compared /// Boolean public override bool Equals(object obj) { // credit: http://stackoverflow.com/a/10454552/677735 return this.Equals(obj as TouristChatOtherViewModel); } /// /// Returns true if TouristChatOtherViewModel instances are equal /// /// Instance of TouristChatOtherViewModel to be compared /// Boolean public bool Equals(TouristChatOtherViewModel other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) return false; return ( this.TouristChatId == other.TouristChatId || this.TouristChatId != null && this.TouristChatId.Equals(other.TouristChatId) ) && ( this.ConversationId == other.ConversationId || this.ConversationId != null && this.ConversationId.Equals(other.ConversationId) ) && ( this.CreatedTime == other.CreatedTime || this.CreatedTime != null && this.CreatedTime.Equals(other.CreatedTime) ) && ( this.TouristId == other.TouristId || this.TouristId != null && this.TouristId.Equals(other.TouristId) ) && ( this.NoDisturb == other.NoDisturb || this.NoDisturb != null && this.NoDisturb.Equals(other.NoDisturb) ) && ( this.IsBlocked == other.IsBlocked || this.IsBlocked != null && this.IsBlocked.Equals(other.IsBlocked) ) && ( this.IsTop == other.IsTop || this.IsTop != null && this.IsTop.Equals(other.IsTop) ) && ( this.Alias == other.Alias || this.Alias != null && this.Alias.Equals(other.Alias) ) && ( this.AvatarUrl == other.AvatarUrl || this.AvatarUrl != null && this.AvatarUrl.Equals(other.AvatarUrl) ) && ( this.TransferUserId == other.TransferUserId || this.TransferUserId != null && this.TransferUserId.Equals(other.TransferUserId) ) && ( this.FromChatId == other.FromChatId || this.FromChatId != null && this.FromChatId.Equals(other.FromChatId) ) && ( this.LastMessageId == other.LastMessageId || this.LastMessageId != null && this.LastMessageId.Equals(other.LastMessageId) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks etc, of course :) if (this.TouristChatId != null) hash = hash * 59 + this.TouristChatId.GetHashCode(); if (this.ConversationId != null) hash = hash * 59 + this.ConversationId.GetHashCode(); if (this.CreatedTime != null) hash = hash * 59 + this.CreatedTime.GetHashCode(); if (this.TouristId != null) hash = hash * 59 + this.TouristId.GetHashCode(); if (this.NoDisturb != null) hash = hash * 59 + this.NoDisturb.GetHashCode(); if (this.IsBlocked != null) hash = hash * 59 + this.IsBlocked.GetHashCode(); if (this.IsTop != null) hash = hash * 59 + this.IsTop.GetHashCode(); if (this.Alias != null) hash = hash * 59 + this.Alias.GetHashCode(); if (this.AvatarUrl != null) hash = hash * 59 + this.AvatarUrl.GetHashCode(); if (this.TransferUserId != null) hash = hash * 59 + this.TransferUserId.GetHashCode(); if (this.FromChatId != null) hash = hash * 59 + this.FromChatId.GetHashCode(); if (this.LastMessageId != null) hash = hash * 59 + this.LastMessageId.GetHashCode(); return hash; } } public IEnumerable Validate(ValidationContext validationContext) { yield break; } } #pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' }