You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
205 lines
7.0 KiB
205 lines
7.0 KiB
4 years ago
|
/*
|
||
|
* Service Collaborateur API
|
||
|
*
|
||
|
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
|
||
|
*
|
||
4 years ago
|
* OpenAPI spec version: 1.1.3
|
||
4 years ago
|
* 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>
|
||
|
/// Projet
|
||
|
/// </summary>
|
||
|
[DataContract]
|
||
|
public partial class Projet : IEquatable<Projet>, IValidatableObject
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Initializes a new instance of the <see cref="Projet" /> class.
|
||
|
/// </summary>
|
||
|
/// <param name="id">id.</param>
|
||
|
/// <param name="nom">nom.</param>
|
||
|
/// <param name="_client">_client.</param>
|
||
|
/// <param name="debut">debut.</param>
|
||
|
/// <param name="fin">fin.</param>
|
||
|
/// <param name="description">description.</param>
|
||
|
public Projet(long? id = default(long?), string nom = default(string), string _client = default(string), DateTime? debut = default(DateTime?), DateTime? fin = default(DateTime?), string description = default(string))
|
||
|
{
|
||
|
this.Id = id;
|
||
|
this.Nom = nom;
|
||
|
this.Client = _client;
|
||
|
this.Debut = debut;
|
||
|
this.Fin = fin;
|
||
|
this.Description = description;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets Id
|
||
|
/// </summary>
|
||
|
[DataMember(Name="id", EmitDefaultValue=false)]
|
||
|
public long? Id { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets Nom
|
||
|
/// </summary>
|
||
|
[DataMember(Name="nom", EmitDefaultValue=false)]
|
||
|
public string Nom { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets Client
|
||
|
/// </summary>
|
||
|
[DataMember(Name="client", EmitDefaultValue=false)]
|
||
|
public string Client { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets Debut
|
||
|
/// </summary>
|
||
|
[DataMember(Name="debut", EmitDefaultValue=false)]
|
||
|
[JsonConverter(typeof(SwaggerDateConverter))]
|
||
|
public DateTime? Debut { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets Fin
|
||
|
/// </summary>
|
||
|
[DataMember(Name="fin", EmitDefaultValue=false)]
|
||
|
[JsonConverter(typeof(SwaggerDateConverter))]
|
||
|
public DateTime? Fin { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets Description
|
||
|
/// </summary>
|
||
|
[DataMember(Name="description", EmitDefaultValue=false)]
|
||
|
public string Description { 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 Projet {\n");
|
||
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||
|
sb.Append(" Nom: ").Append(Nom).Append("\n");
|
||
|
sb.Append(" Client: ").Append(Client).Append("\n");
|
||
|
sb.Append(" Debut: ").Append(Debut).Append("\n");
|
||
|
sb.Append(" Fin: ").Append(Fin).Append("\n");
|
||
|
sb.Append(" Description: ").Append(Description).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 Projet);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Returns true if Projet instances are equal
|
||
|
/// </summary>
|
||
|
/// <param name="input">Instance of Projet to be compared</param>
|
||
|
/// <returns>Boolean</returns>
|
||
|
public bool Equals(Projet input)
|
||
|
{
|
||
|
if (input == null)
|
||
|
return false;
|
||
|
|
||
|
return
|
||
|
(
|
||
|
this.Id == input.Id ||
|
||
|
(this.Id != null &&
|
||
|
this.Id.Equals(input.Id))
|
||
|
) &&
|
||
|
(
|
||
|
this.Nom == input.Nom ||
|
||
|
(this.Nom != null &&
|
||
|
this.Nom.Equals(input.Nom))
|
||
|
) &&
|
||
|
(
|
||
|
this.Client == input.Client ||
|
||
|
(this.Client != null &&
|
||
|
this.Client.Equals(input.Client))
|
||
|
) &&
|
||
|
(
|
||
|
this.Debut == input.Debut ||
|
||
|
(this.Debut != null &&
|
||
|
this.Debut.Equals(input.Debut))
|
||
|
) &&
|
||
|
(
|
||
|
this.Fin == input.Fin ||
|
||
|
(this.Fin != null &&
|
||
|
this.Fin.Equals(input.Fin))
|
||
|
) &&
|
||
|
(
|
||
|
this.Description == input.Description ||
|
||
|
(this.Description != null &&
|
||
|
this.Description.Equals(input.Description))
|
||
|
);
|
||
|
}
|
||
|
|
||
|
/// <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.Id != null)
|
||
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||
|
if (this.Nom != null)
|
||
|
hashCode = hashCode * 59 + this.Nom.GetHashCode();
|
||
|
if (this.Client != null)
|
||
|
hashCode = hashCode * 59 + this.Client.GetHashCode();
|
||
|
if (this.Debut != null)
|
||
|
hashCode = hashCode * 59 + this.Debut.GetHashCode();
|
||
|
if (this.Fin != null)
|
||
|
hashCode = hashCode * 59 + this.Fin.GetHashCode();
|
||
|
if (this.Description != null)
|
||
|
hashCode = hashCode * 59 + this.Description.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;
|
||
|
}
|
||
|
}
|
||
|
}
|