/* * 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.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; using Newtonsoft.Json; namespace IO.Swagger.Models { /// /// /// [DataContract] public partial class NouveauCollaborateur : IEquatable { /// /// Gets or Sets Nom /// [DataMember(Name="nom")] public string Nom { get; set; } /// /// Gets or Sets Prenom /// [DataMember(Name="prenom")] public string Prenom { get; set; } /// /// Gets or Sets Genre /// [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public enum GenreEnum { /// /// Enum FEMININEnum for FEMININ /// [EnumMember(Value = "FEMININ")] FEMININEnum = 0, /// /// Enum MASCULINEnum for MASCULIN /// [EnumMember(Value = "MASCULIN")] MASCULINEnum = 1, /// /// Enum NEUTREEnum for NEUTRE /// [EnumMember(Value = "NEUTRE")] NEUTREEnum = 2 } /// /// Gets or Sets Genre /// [DataMember(Name="genre")] public GenreEnum? Genre { get; set; } /// /// Gets or Sets DateNaissance /// [DataMember(Name="dateNaissance")] public DateTime? DateNaissance { get; set; } /// /// Gets or Sets NbEnfants /// [DataMember(Name="nbEnfants")] public int? NbEnfants { get; set; } /// /// Gets or Sets Adresse /// [DataMember(Name="adresse")] public string Adresse { get; set; } /// /// Gets or Sets AdresseId /// [DataMember(Name="adresseId")] public long? AdresseId { get; set; } /// /// Gets or Sets Telephone /// [DataMember(Name="telephone")] public string Telephone { get; set; } /// /// Gets or Sets MailPerso /// [DataMember(Name="mailPerso")] public string MailPerso { get; set; } /// /// Gets or Sets MailApside /// [DataMember(Name="mailApside")] public string MailApside { get; set; } /// /// Gets or Sets Statut /// [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public enum StatutEnum { /// /// Enum CADREEnum for CADRE /// [EnumMember(Value = "CADRE")] CADREEnum = 0, /// /// Enum NONCADREEnum for NON-CADRE /// [EnumMember(Value = "NON-CADRE")] NONCADREEnum = 1, /// /// Enum ALTERNANTEnum for ALTERNANT /// [EnumMember(Value = "ALTERNANT")] ALTERNANTEnum = 2, /// /// Enum STAGIAIREEnum for STAGIAIRE /// [EnumMember(Value = "STAGIAIRE")] STAGIAIREEnum = 3 } /// /// Gets or Sets Statut /// [DataMember(Name="statut")] public StatutEnum? Statut { get; set; } /// /// Gets or Sets Fonctions /// [DataMember(Name="fonctions")] public string Fonctions { get; set; } /// /// Gets or Sets BusinessUnit /// [DataMember(Name="businessUnit")] public long? BusinessUnit { get; set; } /// /// Gets or Sets Parrain /// [DataMember(Name="parrain")] public long? Parrain { get; set; } /// /// Gets or Sets TechnologiesPref /// [DataMember(Name="technologiesPref")] public List TechnologiesPref { get; set; } /// /// Gets or Sets DateDebutPE /// [DataMember(Name="dateDebutPE")] public DateTime? DateDebutPE { get; set; } /// /// Gets or Sets DateFinPE /// [DataMember(Name="dateFinPE")] public DateTime? DateFinPE { 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 NouveauCollaborateur {\n"); sb.Append(" Nom: ").Append(Nom).Append("\n"); sb.Append(" Prenom: ").Append(Prenom).Append("\n"); sb.Append(" Genre: ").Append(Genre).Append("\n"); sb.Append(" DateNaissance: ").Append(DateNaissance).Append("\n"); sb.Append(" NbEnfants: ").Append(NbEnfants).Append("\n"); sb.Append(" Adresse: ").Append(Adresse).Append("\n"); sb.Append(" AdresseId: ").Append(AdresseId).Append("\n"); sb.Append(" Telephone: ").Append(Telephone).Append("\n"); sb.Append(" MailPerso: ").Append(MailPerso).Append("\n"); sb.Append(" MailApside: ").Append(MailApside).Append("\n"); sb.Append(" Statut: ").Append(Statut).Append("\n"); sb.Append(" Fonctions: ").Append(Fonctions).Append("\n"); sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); sb.Append(" Parrain: ").Append(Parrain).Append("\n"); sb.Append(" TechnologiesPref: ").Append(TechnologiesPref).Append("\n"); sb.Append(" DateDebutPE: ").Append(DateDebutPE).Append("\n"); sb.Append(" DateFinPE: ").Append(DateFinPE).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) { if (ReferenceEquals(null, obj)) return false; if (ReferenceEquals(this, obj)) return true; return obj.GetType() == GetType() && Equals((NouveauCollaborateur)obj); } /// /// Returns true if NouveauCollaborateur instances are equal /// /// Instance of NouveauCollaborateur to be compared /// Boolean public bool Equals(NouveauCollaborateur other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return ( Nom == other.Nom || Nom != null && Nom.Equals(other.Nom) ) && ( Prenom == other.Prenom || Prenom != null && Prenom.Equals(other.Prenom) ) && ( Genre == other.Genre || Genre != null && Genre.Equals(other.Genre) ) && ( DateNaissance == other.DateNaissance || DateNaissance != null && DateNaissance.Equals(other.DateNaissance) ) && ( NbEnfants == other.NbEnfants || NbEnfants != null && NbEnfants.Equals(other.NbEnfants) ) && ( Adresse == other.Adresse || Adresse != null && Adresse.Equals(other.Adresse) ) && ( AdresseId == other.AdresseId || AdresseId != null && AdresseId.Equals(other.AdresseId) ) && ( Telephone == other.Telephone || Telephone != null && Telephone.Equals(other.Telephone) ) && ( MailPerso == other.MailPerso || MailPerso != null && MailPerso.Equals(other.MailPerso) ) && ( MailApside == other.MailApside || MailApside != null && MailApside.Equals(other.MailApside) ) && ( Statut == other.Statut || Statut != null && Statut.Equals(other.Statut) ) && ( Fonctions == other.Fonctions || Fonctions != null && Fonctions.Equals(other.Fonctions) ) && ( BusinessUnit == other.BusinessUnit || BusinessUnit != null && BusinessUnit.Equals(other.BusinessUnit) ) && ( Parrain == other.Parrain || Parrain != null && Parrain.Equals(other.Parrain) ) && ( TechnologiesPref == other.TechnologiesPref || TechnologiesPref != null && TechnologiesPref.SequenceEqual(other.TechnologiesPref) ) && ( DateDebutPE == other.DateDebutPE || DateDebutPE != null && DateDebutPE.Equals(other.DateDebutPE) ) && ( DateFinPE == other.DateFinPE || DateFinPE != null && DateFinPE.Equals(other.DateFinPE) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Nom != null) hashCode = hashCode * 59 + Nom.GetHashCode(); if (Prenom != null) hashCode = hashCode * 59 + Prenom.GetHashCode(); if (Genre != null) hashCode = hashCode * 59 + Genre.GetHashCode(); if (DateNaissance != null) hashCode = hashCode * 59 + DateNaissance.GetHashCode(); if (NbEnfants != null) hashCode = hashCode * 59 + NbEnfants.GetHashCode(); if (Adresse != null) hashCode = hashCode * 59 + Adresse.GetHashCode(); if (AdresseId != null) hashCode = hashCode * 59 + AdresseId.GetHashCode(); if (Telephone != null) hashCode = hashCode * 59 + Telephone.GetHashCode(); if (MailPerso != null) hashCode = hashCode * 59 + MailPerso.GetHashCode(); if (MailApside != null) hashCode = hashCode * 59 + MailApside.GetHashCode(); if (Statut != null) hashCode = hashCode * 59 + Statut.GetHashCode(); if (Fonctions != null) hashCode = hashCode * 59 + Fonctions.GetHashCode(); if (BusinessUnit != null) hashCode = hashCode * 59 + BusinessUnit.GetHashCode(); if (Parrain != null) hashCode = hashCode * 59 + Parrain.GetHashCode(); if (TechnologiesPref != null) hashCode = hashCode * 59 + TechnologiesPref.GetHashCode(); if (DateDebutPE != null) hashCode = hashCode * 59 + DateDebutPE.GetHashCode(); if (DateFinPE != null) hashCode = hashCode * 59 + DateFinPE.GetHashCode(); return hashCode; } } #region Operators #pragma warning disable 1591 public static bool operator ==(NouveauCollaborateur left, NouveauCollaborateur right) { return Equals(left, right); } public static bool operator !=(NouveauCollaborateur left, NouveauCollaborateur right) { return !Equals(left, right); } #pragma warning restore 1591 #endregion Operators } }