Front : create class to connect, send and receive message

- Create environment class
 - Create Connexion class to connect and save data
 - Refactor back api
This commit is contained in:
gparant 2020-04-05 20:57:14 +02:00
parent b4f77ba51a
commit 7e08e7f133
8 changed files with 374 additions and 5 deletions

View file

@ -6,7 +6,7 @@ export class Point implements PointInterface{
y: number;
constructor(x : number, y : number) {
if(!x || !y){
if(x === null || y === null){
throw Error("position x and y cannot be null");
}
this.x = x;