/*
* 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
{
///
/// NouvelleAgence
///
[DataContract]
public partial class NouvelleAgence : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
///
/// nom.
/// bus.
public NouvelleAgence(string nom = default(string), List bus = default(List))
{
this.Nom = nom;
this.Bus = bus;
}
///
/// Gets or Sets Nom
///
[DataMember(Name="nom", EmitDefaultValue=false)]
public string Nom { get; set; }
///
/// Gets or Sets Bus
///
[DataMember(Name="bus", EmitDefaultValue=false)]
public List Bus { 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 NouvelleAgence {\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Bus: ").Append(Bus).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 NouvelleAgence);
}
///
/// Returns true if NouvelleAgence instances are equal
///
/// Instance of NouvelleAgence to be compared
/// Boolean
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)
);
}
///
/// 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.Bus != null)
hashCode = hashCode * 59 + this.Bus.GetHashCode();
return hashCode;
}
}
///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}