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.
62 lines
1.8 KiB
62 lines
1.8 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Xml.Linq;
|
|
|
|
namespace Model
|
|
{
|
|
[DataContract(Name = "ile")]
|
|
public class Ile : ObjetOhara
|
|
{
|
|
[DataMember(Name = "nomromanise")]
|
|
public string NomRomanise { get; set; }
|
|
[DataMember(Name = "region")]
|
|
public string Region { get; set; }
|
|
[DataMember(Name = "premierchap")]
|
|
public int PremierChap { get; set; }
|
|
[DataMember(Name = "premierep")]
|
|
public int PremierEp { get; set; }
|
|
[DataMember(Name = "description")]
|
|
public string Description { get; set; }
|
|
[DataMember(Name = "geographie")]
|
|
public string Geographie { get; set; }
|
|
|
|
|
|
|
|
public Ile(string nom, string nomRomanise, string region, int premierChap, int premierEp, string description, string geographie) : base(nom)
|
|
{
|
|
|
|
NomRomanise = nomRomanise;
|
|
Region = region;
|
|
if (premierEp < 0)
|
|
{
|
|
PremierEp = 0;
|
|
}
|
|
else
|
|
{
|
|
PremierEp = premierEp;
|
|
}
|
|
if (premierChap < 0)
|
|
{
|
|
premierChap = 0;
|
|
}
|
|
else
|
|
{
|
|
PremierChap = premierChap;
|
|
}
|
|
Description = description;
|
|
Geographie = geographie;
|
|
|
|
}
|
|
|
|
public Ile(string nom, string nomRomanise, string region, int premierChap, int premierEp, string description, string geographie, string image) : this(nom,nomRomanise,region,premierChap,premierEp,description,geographie)
|
|
{
|
|
|
|
Image = image;
|
|
}
|
|
}
|
|
}
|