/* 
 * 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>
    /// It proposes the sectional/s and any protocols based on the parameters provided
    /// </summary>
    [DataContract]
        public partial class SectionalMasterDataProposalParametersDTO :  IEquatable<SectionalMasterDataProposalParametersDTO>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SectionalMasterDataProposalParametersDTO" /> class.
        /// </summary>
        /// <param name="anno">anno.</param>
        /// <param name="causale">causale.</param>
        /// <param name="codAttivita">codAttivita.</param>
        /// <param name="calcolaProtocollo">calcolaProtocollo.</param>
        /// <param name="tipoMovimento">tipoMovimento.</param>
        /// <param name="ignoraCodAttivita">ignoraCodAttivita.</param>
        /// <param name="ignoraProtocollazioneMovimenti">ignoraProtocollazioneMovimenti.</param>
        /// <param name="additionalData">additionalData.</param>
        /// <param name="pluginData">pluginData.</param>
        public SectionalMasterDataProposalParametersDTO(double? anno = default(double?), string causale = default(string), double? codAttivita = default(double?), bool? calcolaProtocollo = default(bool?), double? tipoMovimento = default(double?), bool? ignoraCodAttivita = default(bool?), bool? ignoraProtocollazioneMovimenti = default(bool?), Dictionary<string, Object> additionalData = default(Dictionary<string, Object>), Dictionary<string, Object> pluginData = default(Dictionary<string, Object>))
        {
            this.Anno = anno;
            this.Causale = causale;
            this.CodAttivita = codAttivita;
            this.CalcolaProtocollo = calcolaProtocollo;
            this.TipoMovimento = tipoMovimento;
            this.IgnoraCodAttivita = ignoraCodAttivita;
            this.IgnoraProtocollazioneMovimenti = ignoraProtocollazioneMovimenti;
            this.AdditionalData = additionalData;
            this.PluginData = pluginData;
        }
        
        /// <summary>
        /// Gets or Sets Anno
        /// </summary>
        [DataMember(Name="anno", EmitDefaultValue=false)]
        public double? Anno { get; set; }

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

        /// <summary>
        /// Gets or Sets CodAttivita
        /// </summary>
        [DataMember(Name="codAttivita", EmitDefaultValue=false)]
        public double? CodAttivita { get; set; }

        /// <summary>
        /// Gets or Sets CalcolaProtocollo
        /// </summary>
        [DataMember(Name="calcolaProtocollo", EmitDefaultValue=false)]
        public bool? CalcolaProtocollo { get; set; }

        /// <summary>
        /// Gets or Sets TipoMovimento
        /// </summary>
        [DataMember(Name="tipoMovimento", EmitDefaultValue=false)]
        public double? TipoMovimento { get; set; }

        /// <summary>
        /// Gets or Sets IgnoraCodAttivita
        /// </summary>
        [DataMember(Name="ignoraCodAttivita", EmitDefaultValue=false)]
        public bool? IgnoraCodAttivita { get; set; }

        /// <summary>
        /// Gets or Sets IgnoraProtocollazioneMovimenti
        /// </summary>
        [DataMember(Name="ignoraProtocollazioneMovimenti", EmitDefaultValue=false)]
        public bool? IgnoraProtocollazioneMovimenti { 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 SectionalMasterDataProposalParametersDTO {\n");
            sb.Append("  Anno: ").Append(Anno).Append("\n");
            sb.Append("  Causale: ").Append(Causale).Append("\n");
            sb.Append("  CodAttivita: ").Append(CodAttivita).Append("\n");
            sb.Append("  CalcolaProtocollo: ").Append(CalcolaProtocollo).Append("\n");
            sb.Append("  TipoMovimento: ").Append(TipoMovimento).Append("\n");
            sb.Append("  IgnoraCodAttivita: ").Append(IgnoraCodAttivita).Append("\n");
            sb.Append("  IgnoraProtocollazioneMovimenti: ").Append(IgnoraProtocollazioneMovimenti).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 SectionalMasterDataProposalParametersDTO);
        }

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

            return 
                (
                    this.Anno == input.Anno ||
                    (this.Anno != null &&
                    this.Anno.Equals(input.Anno))
                ) && 
                (
                    this.Causale == input.Causale ||
                    (this.Causale != null &&
                    this.Causale.Equals(input.Causale))
                ) && 
                (
                    this.CodAttivita == input.CodAttivita ||
                    (this.CodAttivita != null &&
                    this.CodAttivita.Equals(input.CodAttivita))
                ) && 
                (
                    this.CalcolaProtocollo == input.CalcolaProtocollo ||
                    (this.CalcolaProtocollo != null &&
                    this.CalcolaProtocollo.Equals(input.CalcolaProtocollo))
                ) && 
                (
                    this.TipoMovimento == input.TipoMovimento ||
                    (this.TipoMovimento != null &&
                    this.TipoMovimento.Equals(input.TipoMovimento))
                ) && 
                (
                    this.IgnoraCodAttivita == input.IgnoraCodAttivita ||
                    (this.IgnoraCodAttivita != null &&
                    this.IgnoraCodAttivita.Equals(input.IgnoraCodAttivita))
                ) && 
                (
                    this.IgnoraProtocollazioneMovimenti == input.IgnoraProtocollazioneMovimenti ||
                    (this.IgnoraProtocollazioneMovimenti != null &&
                    this.IgnoraProtocollazioneMovimenti.Equals(input.IgnoraProtocollazioneMovimenti))
                ) && 
                (
                    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.Anno != null)
                    hashCode = hashCode * 59 + this.Anno.GetHashCode();
                if (this.Causale != null)
                    hashCode = hashCode * 59 + this.Causale.GetHashCode();
                if (this.CodAttivita != null)
                    hashCode = hashCode * 59 + this.CodAttivita.GetHashCode();
                if (this.CalcolaProtocollo != null)
                    hashCode = hashCode * 59 + this.CalcolaProtocollo.GetHashCode();
                if (this.TipoMovimento != null)
                    hashCode = hashCode * 59 + this.TipoMovimento.GetHashCode();
                if (this.IgnoraCodAttivita != null)
                    hashCode = hashCode * 59 + this.IgnoraCodAttivita.GetHashCode();
                if (this.IgnoraProtocollazioneMovimenti != null)
                    hashCode = hashCode * 59 + this.IgnoraProtocollazioneMovimenti.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;
        }
    }
}
