/* 
 * TSE Cloud - CO
 *
 * This is Swagger Docs for Document WebApi Teamsystemn Enterprise Cloud, more detail at [https://swagger.io](https://swagger.io).
 *
 * OpenAPI spec version: v2025.3000
 * 
 * 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>
    /// Stato attuale di un&#x27;entità.
    /// </summary>
    [DataContract]
        public partial class DMSPublishedEntityFWDTO :  IEquatable<DMSPublishedEntityFWDTO>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="DMSPublishedEntityFWDTO" /> class.
        /// </summary>
        /// <param name="guid">Guid entità..</param>
        /// <param name="tipoarchHm30">Tipologia entità..</param>
        /// <param name="idknos">Id Knos..</param>
        /// <param name="dittaCg18">Azienda.</param>
        /// <param name="protocollo">Protocollo.</param>
        /// <param name="flgInvalid">Flag invalido.</param>
        /// <param name="percorso">Path.</param>
        /// <param name="nome">File name.</param>
        /// <param name="datapub">Data pubblicazione.</param>
        /// <param name="publicationid">Id pubblicazione DMS.</param>
        /// <param name="additionalData">additionalData.</param>
        /// <param name="pluginData">pluginData.</param>
        public DMSPublishedEntityFWDTO(Guid? guid = default(Guid?), int? tipoarchHm30 = default(int?), int? idknos = default(int?), double? dittaCg18 = default(double?), string protocollo = default(string), int? flgInvalid = default(int?), string percorso = default(string), string nome = default(string), DateTime? datapub = default(DateTime?), string publicationid = default(string), Dictionary<string, Object> additionalData = default(Dictionary<string, Object>), Dictionary<string, Object> pluginData = default(Dictionary<string, Object>))
        {
            this.Guid = guid;
            this.TipoarchHm30 = tipoarchHm30;
            this.Idknos = idknos;
            this.DittaCg18 = dittaCg18;
            this.Protocollo = protocollo;
            this.FlgInvalid = flgInvalid;
            this.Percorso = percorso;
            this.Nome = nome;
            this.Datapub = datapub;
            this.Publicationid = publicationid;
            this.AdditionalData = additionalData;
            this.PluginData = pluginData;
        }
        
        /// <summary>
        /// Guid entità.
        /// </summary>
        /// <value>Guid entità.</value>
        [DataMember(Name="guid", EmitDefaultValue=false)]
        public Guid? Guid { get; set; }

        /// <summary>
        /// Tipologia entità.
        /// </summary>
        /// <value>Tipologia entità.</value>
        [DataMember(Name="tipoarchHm30", EmitDefaultValue=false)]
        public int? TipoarchHm30 { get; set; }

        /// <summary>
        /// Id Knos.
        /// </summary>
        /// <value>Id Knos.</value>
        [DataMember(Name="idknos", EmitDefaultValue=false)]
        public int? Idknos { get; set; }

        /// <summary>
        /// Azienda
        /// </summary>
        /// <value>Azienda</value>
        [DataMember(Name="dittaCg18", EmitDefaultValue=false)]
        public double? DittaCg18 { get; set; }

        /// <summary>
        /// Protocollo
        /// </summary>
        /// <value>Protocollo</value>
        [DataMember(Name="protocollo", EmitDefaultValue=false)]
        public string Protocollo { get; set; }

        /// <summary>
        /// Flag invalido
        /// </summary>
        /// <value>Flag invalido</value>
        [DataMember(Name="flgInvalid", EmitDefaultValue=false)]
        public int? FlgInvalid { get; set; }

        /// <summary>
        /// Path
        /// </summary>
        /// <value>Path</value>
        [DataMember(Name="percorso", EmitDefaultValue=false)]
        public string Percorso { get; set; }

        /// <summary>
        /// File name
        /// </summary>
        /// <value>File name</value>
        [DataMember(Name="nome", EmitDefaultValue=false)]
        public string Nome { get; set; }

        /// <summary>
        /// Data pubblicazione
        /// </summary>
        /// <value>Data pubblicazione</value>
        [DataMember(Name="datapub", EmitDefaultValue=false)]
        public DateTime? Datapub { get; set; }

        /// <summary>
        /// Id pubblicazione DMS
        /// </summary>
        /// <value>Id pubblicazione DMS</value>
        [DataMember(Name="publicationid", EmitDefaultValue=false)]
        public string Publicationid { get; set; }

        /// <summary>
        /// Gets or Sets AdditionalData
        /// </summary>
        [DataMember(Name="additionalData", EmitDefaultValue=false)]
        public Dictionary<string, Object> AdditionalData { get; set; }

        /// <summary>
        /// Gets or Sets PluginData
        /// </summary>
        [DataMember(Name="pluginData", EmitDefaultValue=false)]
        public Dictionary<string, Object> PluginData { 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 DMSPublishedEntityFWDTO {\n");
            sb.Append("  Guid: ").Append(Guid).Append("\n");
            sb.Append("  TipoarchHm30: ").Append(TipoarchHm30).Append("\n");
            sb.Append("  Idknos: ").Append(Idknos).Append("\n");
            sb.Append("  DittaCg18: ").Append(DittaCg18).Append("\n");
            sb.Append("  Protocollo: ").Append(Protocollo).Append("\n");
            sb.Append("  FlgInvalid: ").Append(FlgInvalid).Append("\n");
            sb.Append("  Percorso: ").Append(Percorso).Append("\n");
            sb.Append("  Nome: ").Append(Nome).Append("\n");
            sb.Append("  Datapub: ").Append(Datapub).Append("\n");
            sb.Append("  Publicationid: ").Append(Publicationid).Append("\n");
            sb.Append("  AdditionalData: ").Append(AdditionalData).Append("\n");
            sb.Append("  PluginData: ").Append(PluginData).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 DMSPublishedEntityFWDTO);
        }

        /// <summary>
        /// Returns true if DMSPublishedEntityFWDTO instances are equal
        /// </summary>
        /// <param name="input">Instance of DMSPublishedEntityFWDTO to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DMSPublishedEntityFWDTO input)
        {
            if (input == null)
                return false;

            return 
                (
                    this.Guid == input.Guid ||
                    (this.Guid != null &&
                    this.Guid.Equals(input.Guid))
                ) && 
                (
                    this.TipoarchHm30 == input.TipoarchHm30 ||
                    (this.TipoarchHm30 != null &&
                    this.TipoarchHm30.Equals(input.TipoarchHm30))
                ) && 
                (
                    this.Idknos == input.Idknos ||
                    (this.Idknos != null &&
                    this.Idknos.Equals(input.Idknos))
                ) && 
                (
                    this.DittaCg18 == input.DittaCg18 ||
                    (this.DittaCg18 != null &&
                    this.DittaCg18.Equals(input.DittaCg18))
                ) && 
                (
                    this.Protocollo == input.Protocollo ||
                    (this.Protocollo != null &&
                    this.Protocollo.Equals(input.Protocollo))
                ) && 
                (
                    this.FlgInvalid == input.FlgInvalid ||
                    (this.FlgInvalid != null &&
                    this.FlgInvalid.Equals(input.FlgInvalid))
                ) && 
                (
                    this.Percorso == input.Percorso ||
                    (this.Percorso != null &&
                    this.Percorso.Equals(input.Percorso))
                ) && 
                (
                    this.Nome == input.Nome ||
                    (this.Nome != null &&
                    this.Nome.Equals(input.Nome))
                ) && 
                (
                    this.Datapub == input.Datapub ||
                    (this.Datapub != null &&
                    this.Datapub.Equals(input.Datapub))
                ) && 
                (
                    this.Publicationid == input.Publicationid ||
                    (this.Publicationid != null &&
                    this.Publicationid.Equals(input.Publicationid))
                ) && 
                (
                    this.AdditionalData == input.AdditionalData ||
                    this.AdditionalData != null &&
                    input.AdditionalData != null &&
                    this.AdditionalData.SequenceEqual(input.AdditionalData)
                ) && 
                (
                    this.PluginData == input.PluginData ||
                    this.PluginData != null &&
                    input.PluginData != null &&
                    this.PluginData.SequenceEqual(input.PluginData)
                );
        }

        /// <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.Guid != null)
                    hashCode = hashCode * 59 + this.Guid.GetHashCode();
                if (this.TipoarchHm30 != null)
                    hashCode = hashCode * 59 + this.TipoarchHm30.GetHashCode();
                if (this.Idknos != null)
                    hashCode = hashCode * 59 + this.Idknos.GetHashCode();
                if (this.DittaCg18 != null)
                    hashCode = hashCode * 59 + this.DittaCg18.GetHashCode();
                if (this.Protocollo != null)
                    hashCode = hashCode * 59 + this.Protocollo.GetHashCode();
                if (this.FlgInvalid != null)
                    hashCode = hashCode * 59 + this.FlgInvalid.GetHashCode();
                if (this.Percorso != null)
                    hashCode = hashCode * 59 + this.Percorso.GetHashCode();
                if (this.Nome != null)
                    hashCode = hashCode * 59 + this.Nome.GetHashCode();
                if (this.Datapub != null)
                    hashCode = hashCode * 59 + this.Datapub.GetHashCode();
                if (this.Publicationid != null)
                    hashCode = hashCode * 59 + this.Publicationid.GetHashCode();
                if (this.AdditionalData != null)
                    hashCode = hashCode * 59 + this.AdditionalData.GetHashCode();
                if (this.PluginData != null)
                    hashCode = hashCode * 59 + this.PluginData.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;
        }
    }
}
