/* * 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.2 * 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 { /// /// NouveauCollaborateur /// [DataContract] public partial class NouveauCollaborateur : IEquatable, IValidatableObject { /// /// Defines Genre /// [JsonConverter(typeof(StringEnumConverter))] public enum GenreEnum { /// /// Enum FEMININ for value: FEMININ /// [EnumMember(Value = "FEMININ")] FEMININ = 1, /// /// Enum MASCULIN for value: MASCULIN /// [EnumMember(Value = "MASCULIN")] MASCULIN = 2, /// /// Enum NEUTRE for value: NEUTRE /// [EnumMember(Value = "NEUTRE")] NEUTRE = 3 } /// /// Gets or Sets Genre /// [DataMember(Name="genre", EmitDefaultValue=false)] public GenreEnum? Genre { get; set; } /// /// Defines Statut /// [JsonConverter(typeof(StringEnumConverter))] public enum StatutEnum { /// /// Enum CADRE for value: CADRE /// [EnumMember(Value = "CADRE")] CADRE = 1, /// /// Enum NONCADRE for value: NON-CADRE /// [EnumMember(Value = "NON-CADRE")] NONCADRE = 2, /// /// Enum ALTERNANT for value: ALTERNANT /// [EnumMember(Value = "ALTERNANT")] ALTERNANT = 3, /// /// Enum STAGIAIRE for value: STAGIAIRE /// [EnumMember(Value = "STAGIAIRE")] STAGIAIRE = 4 } /// /// Gets or Sets Statut /// [DataMember(Name="statut", EmitDefaultValue=false)] public StatutEnum? Statut { get; set; } /// /// Initializes a new instance of the class. /// /// nom. /// prenom. /// genre. /// dateNaissance. /// nbEnfants. /// adresse. /// adresseId. /// telephone. /// mailPerso. /// mailApside. /// statut. /// fonctions. /// businessUnit. /// parrain. /// technologiesPref. /// dateDebutPE. /// dateFinPE. public NouveauCollaborateur(string nom = default(string), string prenom = default(string), GenreEnum? genre = default(GenreEnum?), DateTime? dateNaissance = default(DateTime?), int? nbEnfants = default(int?), string adresse = default(string), long? adresseId = default(long?), string telephone = default(string), string mailPerso = default(string), string mailApside = default(string), StatutEnum? statut = default(StatutEnum?), string fonctions = default(string), long? businessUnit = default(long?), long? parrain = default(long?), List technologiesPref = default(List), DateTime? dateDebutPE = default(DateTime?), DateTime? dateFinPE = default(DateTime?)) { this.Nom = nom; this.Prenom = prenom; this.Genre = genre; this.DateNaissance = dateNaissance; this.NbEnfants = nbEnfants; this.Adresse = adresse; this.AdresseId = adresseId; this.Telephone = telephone; this.MailPerso = mailPerso; this.MailApside = mailApside; this.Statut = statut; this.Fonctions = fonctions; this.BusinessUnit = businessUnit; this.Parrain = parrain; this.TechnologiesPref = technologiesPref; this.DateDebutPE = dateDebutPE; this.DateFinPE = dateFinPE; } /// /// Gets or Sets Nom /// [DataMember(Name="nom", EmitDefaultValue=false)] public string Nom { get; set; } /// /// Gets or Sets Prenom /// [DataMember(Name="prenom", EmitDefaultValue=false)] public string Prenom { get; set; } /// /// Gets or Sets DateNaissance /// [DataMember(Name="dateNaissance", EmitDefaultValue=false)] [JsonConverter(typeof(SwaggerDateConverter))] public DateTime? DateNaissance { get; set; } /// /// Gets or Sets NbEnfants /// [DataMember(Name="nbEnfants", EmitDefaultValue=false)] public int? NbEnfants { get; set; } /// /// Gets or Sets Adresse /// [DataMember(Name="adresse", EmitDefaultValue=false)] public string Adresse { get; set; } /// /// Gets or Sets AdresseId /// [DataMember(Name="adresseId", EmitDefaultValue=false)] public long? AdresseId { get; set; } /// /// Gets or Sets Telephone /// [DataMember(Name="telephone", EmitDefaultValue=false)] public string Telephone { get; set; } /// /// Gets or Sets MailPerso /// [DataMember(Name="mailPerso", EmitDefaultValue=false)] public string MailPerso { get; set; } /// /// Gets or Sets MailApside /// [DataMember(Name="mailApside", EmitDefaultValue=false)] public string MailApside { get; set; } /// /// Gets or Sets Fonctions /// [DataMember(Name="fonctions", EmitDefaultValue=false)] public string Fonctions { get; set; } /// /// Gets or Sets BusinessUnit /// [DataMember(Name="businessUnit", EmitDefaultValue=false)] public long? BusinessUnit { get; set; } /// /// Gets or Sets Parrain /// [DataMember(Name="parrain", EmitDefaultValue=false)] public long? Parrain { get; set; } /// /// Gets or Sets TechnologiesPref /// [DataMember(Name="technologiesPref", EmitDefaultValue=false)] public List TechnologiesPref { get; set; } /// /// Gets or Sets DateDebutPE /// [DataMember(Name="dateDebutPE", EmitDefaultValue=false)] [JsonConverter(typeof(SwaggerDateConverter))] public DateTime? DateDebutPE { get; set; } /// /// Gets or Sets DateFinPE /// [DataMember(Name="dateFinPE", EmitDefaultValue=false)] [JsonConverter(typeof(SwaggerDateConverter))] 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 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 NouveauCollaborateur); } /// /// Returns true if NouveauCollaborateur instances are equal /// /// Instance of NouveauCollaborateur to be compared /// Boolean public bool Equals(NouveauCollaborateur input) { if (input == null) return false; return ( this.Nom == input.Nom || (this.Nom != null && this.Nom.Equals(input.Nom)) ) && ( this.Prenom == input.Prenom || (this.Prenom != null && this.Prenom.Equals(input.Prenom)) ) && ( this.Genre == input.Genre || (this.Genre != null && this.Genre.Equals(input.Genre)) ) && ( this.DateNaissance == input.DateNaissance || (this.DateNaissance != null && this.DateNaissance.Equals(input.DateNaissance)) ) && ( this.NbEnfants == input.NbEnfants || (this.NbEnfants != null && this.NbEnfants.Equals(input.NbEnfants)) ) && ( this.Adresse == input.Adresse || (this.Adresse != null && this.Adresse.Equals(input.Adresse)) ) && ( this.AdresseId == input.AdresseId || (this.AdresseId != null && this.AdresseId.Equals(input.AdresseId)) ) && ( this.Telephone == input.Telephone || (this.Telephone != null && this.Telephone.Equals(input.Telephone)) ) && ( this.MailPerso == input.MailPerso || (this.MailPerso != null && this.MailPerso.Equals(input.MailPerso)) ) && ( this.MailApside == input.MailApside || (this.MailApside != null && this.MailApside.Equals(input.MailApside)) ) && ( this.Statut == input.Statut || (this.Statut != null && this.Statut.Equals(input.Statut)) ) && ( this.Fonctions == input.Fonctions || (this.Fonctions != null && this.Fonctions.Equals(input.Fonctions)) ) && ( this.BusinessUnit == input.BusinessUnit || (this.BusinessUnit != null && this.BusinessUnit.Equals(input.BusinessUnit)) ) && ( this.Parrain == input.Parrain || (this.Parrain != null && this.Parrain.Equals(input.Parrain)) ) && ( this.TechnologiesPref == input.TechnologiesPref || this.TechnologiesPref != null && input.TechnologiesPref != null && this.TechnologiesPref.SequenceEqual(input.TechnologiesPref) ) && ( this.DateDebutPE == input.DateDebutPE || (this.DateDebutPE != null && this.DateDebutPE.Equals(input.DateDebutPE)) ) && ( this.DateFinPE == input.DateFinPE || (this.DateFinPE != null && this.DateFinPE.Equals(input.DateFinPE)) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.Nom != null) hashCode = hashCode * 59 + this.Nom.GetHashCode(); if (this.Prenom != null) hashCode = hashCode * 59 + this.Prenom.GetHashCode(); if (this.Genre != null) hashCode = hashCode * 59 + this.Genre.GetHashCode(); if (this.DateNaissance != null) hashCode = hashCode * 59 + this.DateNaissance.GetHashCode(); if (this.NbEnfants != null) hashCode = hashCode * 59 + this.NbEnfants.GetHashCode(); if (this.Adresse != null) hashCode = hashCode * 59 + this.Adresse.GetHashCode(); if (this.AdresseId != null) hashCode = hashCode * 59 + this.AdresseId.GetHashCode(); if (this.Telephone != null) hashCode = hashCode * 59 + this.Telephone.GetHashCode(); if (this.MailPerso != null) hashCode = hashCode * 59 + this.MailPerso.GetHashCode(); if (this.MailApside != null) hashCode = hashCode * 59 + this.MailApside.GetHashCode(); if (this.Statut != null) hashCode = hashCode * 59 + this.Statut.GetHashCode(); if (this.Fonctions != null) hashCode = hashCode * 59 + this.Fonctions.GetHashCode(); if (this.BusinessUnit != null) hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode(); if (this.Parrain != null) hashCode = hashCode * 59 + this.Parrain.GetHashCode(); if (this.TechnologiesPref != null) hashCode = hashCode * 59 + this.TechnologiesPref.GetHashCode(); if (this.DateDebutPE != null) hashCode = hashCode * 59 + this.DateDebutPE.GetHashCode(); if (this.DateFinPE != null) hashCode = hashCode * 59 + this.DateFinPE.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }