/* 
 * 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>
    /// ImportExportResultDTO
    /// </summary>
    [DataContract]
        public partial class ImportExportResultDTO :  IEquatable<ImportExportResultDTO>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ImportExportResultDTO" /> class.
        /// </summary>
        /// <param name="guidSession">Guid Process.</param>
        /// <param name="stateProcess">State Process.</param>
        /// <param name="idStateProcess">Id State Process&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Inserted&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Processing&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Terminate&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Terminate with error&lt;/li&gt;&lt;/ul&gt;.</param>
        /// <param name="headProcess">headProcess.</param>
        /// <param name="streamFileExport">Stream File Export.</param>
        public ImportExportResultDTO(string guidSession = default(string), string stateProcess = default(string), long? idStateProcess = default(long?), ImportExportHeadResultDTO headProcess = default(ImportExportHeadResultDTO), string streamFileExport = default(string))
        {
            this.GuidSession = guidSession;
            this.StateProcess = stateProcess;
            this.IdStateProcess = idStateProcess;
            this.HeadProcess = headProcess;
            this.StreamFileExport = streamFileExport;
        }
        
        /// <summary>
        /// Guid Process
        /// </summary>
        /// <value>Guid Process</value>
        [DataMember(Name="guidSession", EmitDefaultValue=false)]
        public string GuidSession { get; set; }

        /// <summary>
        /// State Process
        /// </summary>
        /// <value>State Process</value>
        [DataMember(Name="stateProcess", EmitDefaultValue=false)]
        public string StateProcess { get; set; }

        /// <summary>
        /// Id State Process&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Inserted&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Processing&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Terminate&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Terminate with error&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>Id State Process&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Inserted&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Processing&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Terminate&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Terminate with error&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="idStateProcess", EmitDefaultValue=false)]
        public long? IdStateProcess { get; set; }

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

        /// <summary>
        /// Stream File Export
        /// </summary>
        /// <value>Stream File Export</value>
        [DataMember(Name="streamFileExport", EmitDefaultValue=false)]
        public string StreamFileExport { 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 ImportExportResultDTO {\n");
            sb.Append("  GuidSession: ").Append(GuidSession).Append("\n");
            sb.Append("  StateProcess: ").Append(StateProcess).Append("\n");
            sb.Append("  IdStateProcess: ").Append(IdStateProcess).Append("\n");
            sb.Append("  HeadProcess: ").Append(HeadProcess).Append("\n");
            sb.Append("  StreamFileExport: ").Append(StreamFileExport).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 ImportExportResultDTO);
        }

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

            return 
                (
                    this.GuidSession == input.GuidSession ||
                    (this.GuidSession != null &&
                    this.GuidSession.Equals(input.GuidSession))
                ) && 
                (
                    this.StateProcess == input.StateProcess ||
                    (this.StateProcess != null &&
                    this.StateProcess.Equals(input.StateProcess))
                ) && 
                (
                    this.IdStateProcess == input.IdStateProcess ||
                    (this.IdStateProcess != null &&
                    this.IdStateProcess.Equals(input.IdStateProcess))
                ) && 
                (
                    this.HeadProcess == input.HeadProcess ||
                    (this.HeadProcess != null &&
                    this.HeadProcess.Equals(input.HeadProcess))
                ) && 
                (
                    this.StreamFileExport == input.StreamFileExport ||
                    (this.StreamFileExport != null &&
                    this.StreamFileExport.Equals(input.StreamFileExport))
                );
        }

        /// <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.GuidSession != null)
                    hashCode = hashCode * 59 + this.GuidSession.GetHashCode();
                if (this.StateProcess != null)
                    hashCode = hashCode * 59 + this.StateProcess.GetHashCode();
                if (this.IdStateProcess != null)
                    hashCode = hashCode * 59 + this.IdStateProcess.GetHashCode();
                if (this.HeadProcess != null)
                    hashCode = hashCode * 59 + this.HeadProcess.GetHashCode();
                if (this.StreamFileExport != null)
                    hashCode = hashCode * 59 + this.StreamFileExport.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;
        }
    }
}
