This commit is contained in:
Beppe
2019-07-14 13:18:06 +02:00
parent d883bce694
commit 89dc4d2047
9 changed files with 95 additions and 28 deletions

View File

@@ -1,10 +1,22 @@
using System;
using Globals.Interfaces;
using Newtonsoft.Json;
namespace Globals.classes
{
public class Person : IPerson
{
[JsonConstructor]
public Person (int Id, string name, string lastname, string adress, string gsm, double balance)
{
this.Id = Id;
this.name = name;
this.lastname = lastname;
this.adress = adress;
this.gsm = gsm;
this.balance = balance;
}
public Person( string name, string lastname, string adress, string gsm, double balance)
{
this.name = name;