/* * Service Collaborateur API * * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * * OpenAPI spec version: 1.1.3 * Contact: lilian.gayet@apside-groupe.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; using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter; namespace IO.Swagger.ModelCollaborateur { /// /// PeriodeEssai /// [DataContract] public partial class PeriodeEssai : IEquatable, IValidatableObject { /// /// Gets or Sets IssuePE /// [DataMember(Name="issuePE", EmitDefaultValue=false)] public IssuePE? IssuePE { get; set; } /// /// Initializes a new instance of the class. /// /// id. /// dateDebut. /// dateFinPrev. /// dateFinEffect. /// commentaire. /// issuePE. public PeriodeEssai(long? id = default(long?), DateTime? dateDebut = default(DateTime?), DateTime? dateFinPrev = default(DateTime?), DateTime? dateFinEffect = default(DateTime?), string commentaire = default(string), IssuePE? issuePE = default(IssuePE?)) { this.Id = id; this.DateDebut = dateDebut; this.DateFinPrev = dateFinPrev; this.DateFinEffect = dateFinEffect; this.Commentaire = commentaire; this.IssuePE = issuePE; } /// /// Gets or Sets Id /// [DataMember(Name="id", EmitDefaultValue=false)] public long? Id { get; set; } /// /// Gets or Sets DateDebut /// [DataMember(Name="dateDebut", EmitDefaultValue=false)] [JsonConverter(typeof(SwaggerDateConverter))] public DateTime? DateDebut { get; set; } /// /// Gets or Sets DateFinPrev /// [DataMember(Name="dateFinPrev", EmitDefaultValue=false)] [JsonConverter(typeof(SwaggerDateConverter))] public DateTime? DateFinPrev { get; set; } /// /// Gets or Sets DateFinEffect /// [DataMember(Name="dateFinEffect", EmitDefaultValue=false)] [JsonConverter(typeof(SwaggerDateConverter))] public DateTime? DateFinEffect { get; set; } /// /// Gets or Sets Commentaire /// [DataMember(Name="commentaire", EmitDefaultValue=false)] public string Commentaire { 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 PeriodeEssai {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" DateDebut: ").Append(DateDebut).Append("\n"); sb.Append(" DateFinPrev: ").Append(DateFinPrev).Append("\n"); sb.Append(" DateFinEffect: ").Append(DateFinEffect).Append("\n"); sb.Append(" Commentaire: ").Append(Commentaire).Append("\n"); sb.Append(" IssuePE: ").Append(IssuePE).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// /// Returns true if objects are equal /// /// Object to be compared /// Boolean public override bool Equals(object input) { return this.Equals(input as PeriodeEssai); } /// /// Returns true if PeriodeEssai instances are equal /// /// Instance of PeriodeEssai to be compared /// Boolean public bool Equals(PeriodeEssai input) { if (input == null) return false; return ( this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id)) ) && ( this.DateDebut == input.DateDebut || (this.DateDebut != null && this.DateDebut.Equals(input.DateDebut)) ) && ( this.DateFinPrev == input.DateFinPrev || (this.DateFinPrev != null && this.DateFinPrev.Equals(input.DateFinPrev)) ) && ( this.DateFinEffect == input.DateFinEffect || (this.DateFinEffect != null && this.DateFinEffect.Equals(input.DateFinEffect)) ) && ( this.Commentaire == input.Commentaire || (this.Commentaire != null && this.Commentaire.Equals(input.Commentaire)) ) && ( this.IssuePE == input.IssuePE || (this.IssuePE != null && this.IssuePE.Equals(input.IssuePE)) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.Id != null) hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.DateDebut != null) hashCode = hashCode * 59 + this.DateDebut.GetHashCode(); if (this.DateFinPrev != null) hashCode = hashCode * 59 + this.DateFinPrev.GetHashCode(); if (this.DateFinEffect != null) hashCode = hashCode * 59 + this.DateFinEffect.GetHashCode(); if (this.Commentaire != null) hashCode = hashCode * 59 + this.Commentaire.GetHashCode(); if (this.IssuePE != null) hashCode = hashCode * 59 + this.IssuePE.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }