parent
9433a61ed7
commit
9f0b7c720f
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 13 KiB |
@ -0,0 +1,7 @@
|
|||||||
|
import { Session } from "./Session";
|
||||||
|
|
||||||
|
|
||||||
|
export interface ILoader{
|
||||||
|
Load() : Session
|
||||||
|
LoadFromFile(file : File) : Session
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
import { ILoader } from "./ILoader";
|
||||||
|
import { Session } from "./Session";
|
||||||
|
|
||||||
|
export class LoadDB implements ILoader{
|
||||||
|
LoadFromFile(file: File): Session {
|
||||||
|
throw new Error("file argument is not accepted !."); // GARDER EN NON IMPLEMENTED !
|
||||||
|
}
|
||||||
|
Load(): Session {
|
||||||
|
throw new Error("Method not implemented."); // APPEL API
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
import { ILoader } from "./ILoader";
|
||||||
|
import { Session } from "./Session";
|
||||||
|
|
||||||
|
|
||||||
|
export class LoadXLS implements ILoader{
|
||||||
|
LoadFromFile(file: File): Session {
|
||||||
|
throw new Error("Method not implemented."); // APPEL API RETOUR JSON
|
||||||
|
}
|
||||||
|
Load(): Session {
|
||||||
|
throw new Error("Cannot load without a file."); // GARDER EN NON IMPLEMENTED !
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
import { Member } from "../core/Member";
|
||||||
|
import { Owner } from "../core/Owner";
|
||||||
|
import { Team } from "../core/Team";
|
||||||
|
import { User } from "../core/User";
|
||||||
|
import { WaitingMember } from "../core/WaitingMember";
|
||||||
|
|
||||||
|
const owner1 = new Owner("eric","PASSWORD123","eric@gmail.com",[]);
|
||||||
|
const owner2 = new Owner("castor","PASSWORD123","castor@gmail.com",[]);
|
||||||
|
|
||||||
|
export const USERS1 : User[] = [
|
||||||
|
new Member("jean","PASSWORD123","jean@gmail.com",[]),
|
||||||
|
new WaitingMember("anas","PASSWORD123","anas@gmail.com",[]),
|
||||||
|
]
|
||||||
|
export const USERS2 : User[] = [
|
||||||
|
new Member("stickman","PASSWORD123","stickman@gmail.com",[]),
|
||||||
|
new Member("crapaud","PASSWORD123","crapaud@gmail.com",[]),
|
||||||
|
new WaitingMember("mcdo","PASSWORD123","mcdo@gmail.com",[]),
|
||||||
|
new WaitingMember("bucheron","PASSWORD123","bucheron@gmail.com",[]),
|
||||||
|
]
|
||||||
|
|
||||||
|
export const TEAMS : Team[] = [
|
||||||
|
new Team("La team 1",owner1, USERS1),
|
||||||
|
new Team("Bat INFO",owner2,USERS2)
|
||||||
|
]
|
Loading…
Reference in new issue