Added model in webapp.
This commit is contained in:
parent
171bfccedc
commit
c0bf2f6b2c
14
src/main/webapp/src/app/model/group.ts
Normal file
14
src/main/webapp/src/app/model/group.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import {GroupLeader} from "./groupLeader";
|
||||
import {GroupMember} from "./groupMember";
|
||||
|
||||
export class Group {
|
||||
id: number | null;
|
||||
groupLeaders: GroupLeader[];
|
||||
groupMembers: GroupMember[];
|
||||
|
||||
constructor(id: number | null, groupLeaders: GroupLeader[], groupMembers: GroupMember[]) {
|
||||
this.id = id;
|
||||
this.groupLeaders = groupLeaders;
|
||||
this.groupMembers = groupMembers;
|
||||
}
|
||||
}
|
11
src/main/webapp/src/app/model/groupLeader.ts
Normal file
11
src/main/webapp/src/app/model/groupLeader.ts
Normal file
@ -0,0 +1,11 @@
|
||||
export class GroupLeader {
|
||||
id: number;
|
||||
personId: number;
|
||||
groupId: number;
|
||||
|
||||
constructor(id: number, personId: number, groupId: number) {
|
||||
this.id = id;
|
||||
this.personId = personId;
|
||||
this.groupId = groupId;
|
||||
}
|
||||
}
|
11
src/main/webapp/src/app/model/groupMember.ts
Normal file
11
src/main/webapp/src/app/model/groupMember.ts
Normal file
@ -0,0 +1,11 @@
|
||||
export class GroupMember {
|
||||
id: number;
|
||||
studentId: number;
|
||||
groupId: number;
|
||||
|
||||
constructor(id: number, studentId: number, groupId: number) {
|
||||
this.id = id;
|
||||
this.studentId = studentId;
|
||||
this.groupId = groupId;
|
||||
}
|
||||
}
|
16
src/main/webapp/src/app/model/person.ts
Normal file
16
src/main/webapp/src/app/model/person.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import {Student} from "./student";
|
||||
|
||||
export class Person {
|
||||
id: number | null;
|
||||
name: string;
|
||||
surname: string;
|
||||
|
||||
student: Student | null;
|
||||
|
||||
constructor(id: number | null, name: string, surname: string, student: Student | null) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.surname = surname;
|
||||
this.student = student;
|
||||
}
|
||||
}
|
10
src/main/webapp/src/app/model/student.ts
Normal file
10
src/main/webapp/src/app/model/student.ts
Normal file
@ -0,0 +1,10 @@
|
||||
export class Student {
|
||||
id: number | null;
|
||||
personId: number | null;
|
||||
index: string;
|
||||
constructor(id: number | null, personId: number | null, index: string) {
|
||||
this.id = id;
|
||||
this.personId = personId;
|
||||
this.index = index;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user