This commit is contained in:
Beppe
2019-07-04 01:05:11 +02:00
parent 60eb72bd30
commit df39b0392c
67 changed files with 2147 additions and 31 deletions

View File

@@ -0,0 +1,18 @@
using System;
using Globals.classes;
using static Globals.main;
namespace Globals.Interfaces
{
public interface IBet
{
int Id { get; set; }
Game game { get; set; }
Person person { get; set; }
double cash { get; set; }
bool succes { get; }
state ploeg { get; set; }
bool finished { get; set; }
double getProfit();
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using Globals.classes;
namespace Globals.Interfaces
{
public interface IData
{
List<Person> getPersons();
List<Game> getGames();
List<Ploeg> getPloegen();
List<Bet> getBets();
void saveBets(List<Bet> b);
void saveGames(List<Game> g);
void savePloegen(List<Ploeg> p);
void savePersons(List<Person> p);
}
}

View File

@@ -0,0 +1,15 @@
using System;
using Globals.classes;
using static Globals.main;
namespace Globals.Interfaces
{
public interface IGame
{
int Id { get; set; }
Ploeg home { get; set; }
Ploeg away { get; set; }
DateTime date { get; set; }
state getWinner();
}
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using Globals.classes;
namespace Globals.Interfaces
{
public interface ILogic
{
List<Person> persons { get; set; }
List<Bet> bets { get; set; }
List<Ploeg> ploegen { get; set; }
List<Game> games { get; set; }
Person getPerson(int id);
Bet getBet(int id);
Ploeg getPloeg(int id);
Game getGame(int id);
void addPloeg(Ploeg p);
void addGame(Game g);
void addBet(Bet b);
void addPerson(Person p);
void save();
void updateGame(Game g);
void updatePerson(Person p);
}
}

View File

@@ -0,0 +1,14 @@
using System;
namespace Globals.Interfaces
{
public interface IPerson
{
int Id { get; set; }
string name { get; set; }
string lastname { get; set; }
string adress { get; set; }
string gsm { get; set; }
double balance { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using System;
namespace Globals.Interfaces
{
public interface IPloeg
{
int Id { get; set; }
string naam { get; set; }
int score { get; set; }
bool scoreSet { get; }
}
}