|
|
|
/*
|
|
|
|
* 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
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Fonction
|
|
|
|
/// </summary>
|
|
|
|
[DataContract]
|
|
|
|
public partial class Fonction : IEquatable<Fonction>, IValidatableObject
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="Fonction" /> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="code">code.</param>
|
|
|
|
/// <param name="intitule">intitule.</param>
|
|
|
|
public Fonction(string code = default(string), string intitule = default(string))
|
|
|
|
{
|
|
|
|
this.Code = code;
|
|
|
|
this.Intitule = intitule;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or Sets Code
|
|
|
|
/// </summary>
|
|
|
|
[DataMember(Name="code", EmitDefaultValue=false)]
|
|
|
|
public string Code { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or Sets Intitule
|
|
|
|
/// </summary>
|
|
|
|
[DataMember(Name="intitule", EmitDefaultValue=false)]
|
|
|
|
public string Intitule { 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 Fonction {\n");
|
|
|
|
sb.Append(" Code: ").Append(Code).Append("\n");
|
|
|
|
sb.Append(" Intitule: ").Append(Intitule).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 Fonction);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Returns true if Fonction instances are equal
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="input">Instance of Fonction to be compared</param>
|
|
|
|
/// <returns>Boolean</returns>
|
|
|
|
public bool Equals(Fonction input)
|
|
|
|
{
|
|
|
|
if (input == null)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
return
|
|
|
|
(
|
|
|
|
this.Code == input.Code ||
|
|
|
|
(this.Code != null &&
|
|
|
|
this.Code.Equals(input.Code))
|
|
|
|
) &&
|
|
|
|
(
|
|
|
|
this.Intitule == input.Intitule ||
|
|
|
|
(this.Intitule != null &&
|
|
|
|
this.Intitule.Equals(input.Intitule))
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <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.Code != null)
|
|
|
|
hashCode = hashCode * 59 + this.Code.GetHashCode();
|
|
|
|
if (this.Intitule != null)
|
|
|
|
hashCode = hashCode * 59 + this.Intitule.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|