-
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
8 changed files
with
163 additions
and
21 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
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
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
23 changes: 23 additions & 0 deletions
23
src/main/java/fr/litarvan/sakado/server/data/saved/SavedEstablishment.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,23 @@ | ||
package fr.litarvan.sakado.server.data.saved; | ||
|
||
public class SavedEstablishment | ||
{ | ||
private String name; | ||
private SavedStudentClass[] studentClasses; | ||
|
||
public SavedEstablishment(String name, SavedStudentClass[] studentClasses) | ||
{ | ||
this.name = name; | ||
this.studentClasses = studentClasses; | ||
} | ||
|
||
public String getName() | ||
{ | ||
return name; | ||
} | ||
|
||
public SavedStudentClass[] getStudentClasses() | ||
{ | ||
return studentClasses; | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
src/main/java/fr/litarvan/sakado/server/data/saved/SavedStudentClass.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,53 @@ | ||
package fr.litarvan.sakado.server.data.saved; | ||
|
||
import fr.litarvan.sakado.server.data.Reminder; | ||
|
||
public class SavedStudentClass | ||
{ | ||
private String name; | ||
private String admin; | ||
private SavedUser[] members; | ||
private Reminder[] reminders; | ||
private String[] longHomeworks; | ||
private String[] representatives; | ||
|
||
public SavedStudentClass(String name, String admin, SavedUser[] members, Reminder[] reminders, String[] longHomeworks, String[] representatives) | ||
{ | ||
this.name = name; | ||
this.admin = admin; | ||
this.members = members; | ||
this.reminders = reminders; | ||
this.longHomeworks = longHomeworks; | ||
this.representatives = representatives; | ||
} | ||
|
||
public String getName() | ||
{ | ||
return name; | ||
} | ||
|
||
public String getAdmin() | ||
{ | ||
return admin; | ||
} | ||
|
||
public SavedUser[] getMembers() | ||
{ | ||
return members; | ||
} | ||
|
||
public Reminder[] getReminders() | ||
{ | ||
return reminders; | ||
} | ||
|
||
public String[] getLongHomeworks() | ||
{ | ||
return longHomeworks; | ||
} | ||
|
||
public String[] getRepresentatives() | ||
{ | ||
return representatives; | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/main/java/fr/litarvan/sakado/server/data/saved/SavedUser.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,44 @@ | ||
package fr.litarvan.sakado.server.data.saved; | ||
|
||
public class SavedUser | ||
{ | ||
private String token; | ||
private String establishment; | ||
private String username; | ||
private String password; | ||
private long lastLogin; | ||
|
||
public SavedUser(String token, String establishment, String username, String password, long lastLogin) | ||
{ | ||
this.token = token; | ||
this.establishment = establishment; | ||
this.username = username; | ||
this.password = password; | ||
this.lastLogin = lastLogin; | ||
} | ||
|
||
public String getToken() | ||
{ | ||
return token; | ||
} | ||
|
||
public String getEstablishment() | ||
{ | ||
return establishment; | ||
} | ||
|
||
public String getUsername() | ||
{ | ||
return username; | ||
} | ||
|
||
public String getPassword() | ||
{ | ||
return password; | ||
} | ||
|
||
public long getLastLogin() | ||
{ | ||
return lastLogin; | ||
} | ||
} |
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