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.
Digitalisation_EPA_Serveur/ModelCollaborateur/NouvelleAgence.cs

139 lines
4.4 KiB

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