-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
262 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ logs/ | |
build/ | ||
out/ | ||
crashes/ | ||
*.iml | ||
*.iml | ||
debug.json |
30 changes: 30 additions & 0 deletions
30
src/main/java/fr/litarvan/sakado/server/data/CompleteFileUpload.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package fr.litarvan.sakado.server.data; | ||
|
||
public class CompleteFileUpload extends FileUpload | ||
{ | ||
private long time; | ||
private String subject; | ||
|
||
public CompleteFileUpload() | ||
{ | ||
super(); | ||
} | ||
|
||
public CompleteFileUpload(String name, String url, long time, String subject) | ||
{ | ||
super(name, url); | ||
|
||
this.time = time; | ||
this.subject = subject; | ||
} | ||
|
||
public long getTime() | ||
{ | ||
return time; | ||
} | ||
|
||
public String getSubject() | ||
{ | ||
return subject; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/fr/litarvan/sakado/server/data/FileUpload.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package fr.litarvan.sakado.server.data; | ||
|
||
public class FileUpload | ||
{ | ||
private String name; | ||
private String url; | ||
|
||
public FileUpload() | ||
{ | ||
} | ||
|
||
public FileUpload(String name, String url) | ||
{ | ||
this.name = name; | ||
this.url = url; | ||
} | ||
|
||
public String getName() | ||
{ | ||
return name; | ||
} | ||
|
||
public String getUrl() | ||
{ | ||
return url; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package fr.litarvan.sakado.server.data; | ||
|
||
public class Marks | ||
{ | ||
private SubjectMarks[] marks; | ||
private Averages averages; | ||
|
||
public Marks() | ||
{ | ||
} | ||
|
||
public Marks(SubjectMarks[] marks, Averages averages) | ||
{ | ||
this.marks = marks; | ||
this.averages = averages; | ||
} | ||
|
||
public SubjectMarks[] getMarks() | ||
{ | ||
return marks; | ||
} | ||
|
||
public Averages getAverages() | ||
{ | ||
return averages; | ||
} | ||
} |
121 changes: 121 additions & 0 deletions
121
src/main/java/fr/litarvan/sakado/server/data/Report.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
package fr.litarvan.sakado.server.data; | ||
|
||
public class Report | ||
{ | ||
private ReportSubject[] subjects; | ||
private Averages averages; | ||
private Comment[] comments; | ||
|
||
public Report() | ||
{ | ||
} | ||
|
||
public Report(ReportSubject[] subjects, Averages averages, Comment[] comments) | ||
{ | ||
this.subjects = subjects; | ||
this.averages = averages; | ||
this.comments = comments; | ||
} | ||
|
||
public ReportSubject[] getSubjects() | ||
{ | ||
return subjects; | ||
} | ||
|
||
public Averages getAverages() | ||
{ | ||
return averages; | ||
} | ||
|
||
public Comment[] getComments() | ||
{ | ||
return comments; | ||
} | ||
|
||
public static class ReportSubject | ||
{ | ||
private String name; | ||
private float average; | ||
private float studentClassAverage; | ||
private float maxAverage; | ||
private float minAverage; | ||
private String comment; | ||
private int coefficient; | ||
|
||
public ReportSubject() | ||
{ | ||
} | ||
|
||
public ReportSubject(String name, float average, float studentClassAverage, float maxAverage, float minAverage, String comment, int coefficient) | ||
{ | ||
this.name = name; | ||
this.average = average; | ||
this.studentClassAverage = studentClassAverage; | ||
this.maxAverage = maxAverage; | ||
this.minAverage = minAverage; | ||
this.comment = comment; | ||
this.coefficient = coefficient; | ||
} | ||
|
||
public String getName() | ||
{ | ||
return name; | ||
} | ||
|
||
public float getAverage() | ||
{ | ||
return average; | ||
} | ||
|
||
public float getStudentClassAverage() | ||
{ | ||
return studentClassAverage; | ||
} | ||
|
||
public float getMaxAverage() | ||
{ | ||
return maxAverage; | ||
} | ||
|
||
public float getMinAverage() | ||
{ | ||
return minAverage; | ||
} | ||
|
||
public String getComment() | ||
{ | ||
return comment; | ||
} | ||
|
||
public int getCoefficient() | ||
{ | ||
return coefficient; | ||
} | ||
} | ||
|
||
public static class Comment | ||
{ | ||
private String title; | ||
private String value; | ||
|
||
public Comment() | ||
{ | ||
} | ||
|
||
public Comment(String title, String value) | ||
{ | ||
this.title = title; | ||
this.value = value; | ||
} | ||
|
||
public String getTitle() | ||
{ | ||
return title; | ||
} | ||
|
||
public String getValue() | ||
{ | ||
return value; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters