From 94dce05f39e0dd7e2d9d9e844a81c7b4919b26a3 Mon Sep 17 00:00:00 2001 From: nimaye Date: Thu, 5 Jan 2023 14:08:19 +0100 Subject: [PATCH] maj planification --- Sources/Modele/Planification.cs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Sources/Modele/Planification.cs b/Sources/Modele/Planification.cs index 58b70d8..af0f1df 100644 --- a/Sources/Modele/Planification.cs +++ b/Sources/Modele/Planification.cs @@ -8,5 +8,31 @@ namespace Model { public class Planification { + public string IntituleOperation { get; private set; } + + public double Montant { get; private set; } + + public DateTime DateOperation { get; private set; } + + public MethodePayement ModePayement { get; private set; } + + public bool IsDebit { get; private set; } + public TagOperation Tag { get; private set; } + + [JsonConstructor] + public Planification(string intituleOperation, double montant, DateTime dateOperation, MethodePayement modePayement, TagOperation tag, bool isDebit = true) + { + IntituleOperation = intituleOperation; + Montant = montant; + DateOperation = dateOperation; + ModePayement = modePayement; + IsDebit = isDebit; + Tag = tag; + } + + public override string ToString() + { + return IntituleOperation + " " + DateOperation + " " + Montant + " " + ModePayement + " " + IsDebit + " " + Tag; + } } }