mirror of
https://github.com/bvanroll/cs-oo-project.git
synced 2025-08-30 04:22:42 +00:00
yup
This commit is contained in:
18
Online Gokkantoor/Globals/Interfaces/IBet.cs
Normal file
18
Online Gokkantoor/Globals/Interfaces/IBet.cs
Normal 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();
|
||||
}
|
||||
}
|
18
Online Gokkantoor/Globals/Interfaces/IData.cs
Normal file
18
Online Gokkantoor/Globals/Interfaces/IData.cs
Normal 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);
|
||||
}
|
||||
}
|
15
Online Gokkantoor/Globals/Interfaces/IGame.cs
Normal file
15
Online Gokkantoor/Globals/Interfaces/IGame.cs
Normal 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();
|
||||
}
|
||||
}
|
25
Online Gokkantoor/Globals/Interfaces/ILogic.cs
Normal file
25
Online Gokkantoor/Globals/Interfaces/ILogic.cs
Normal 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);
|
||||
}
|
||||
}
|
14
Online Gokkantoor/Globals/Interfaces/IPerson.cs
Normal file
14
Online Gokkantoor/Globals/Interfaces/IPerson.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
11
Online Gokkantoor/Globals/Interfaces/IPloeg.cs
Normal file
11
Online Gokkantoor/Globals/Interfaces/IPloeg.cs
Normal 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user