This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
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
1 parent
919b5b9
commit 44c3168
Showing
6 changed files
with
244 additions
and
0 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
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
50 changes: 50 additions & 0 deletions
50
schoolData/src/main/kotlin/com/intelligentbackpack/schooldata/storage/SchoolStorage.kt
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 |
---|---|---|
@@ -1,13 +1,63 @@ | ||
package com.intelligentbackpack.schooldata.storage | ||
|
||
/** | ||
* Interface for the storage. | ||
*/ | ||
interface SchoolStorage { | ||
/** | ||
* Saves the school and the city. | ||
* | ||
* @param school the school. | ||
* @param city the city. | ||
*/ | ||
fun saveSchool(school: String, city: String) | ||
|
||
/** | ||
* Returns the school. | ||
* | ||
* @return the school. | ||
*/ | ||
fun getSchool(): String | ||
|
||
/** | ||
* Returns the city of the school. | ||
* | ||
* @return the city. | ||
*/ | ||
fun getCity(): String | ||
|
||
/** | ||
* Checks if the user is a student. | ||
* | ||
* @return true if the user is a student, false otherwise. | ||
*/ | ||
fun isStudent(): Boolean | ||
|
||
/** | ||
* Saves the student class. | ||
* | ||
* @param name the name of the class. | ||
*/ | ||
fun saveClass(name: String) | ||
|
||
/** | ||
* Gets the student class. | ||
* | ||
* @return the name of the class. | ||
*/ | ||
fun getClass(): String | ||
|
||
/** | ||
* Saves the school year. | ||
* | ||
* @param year the year to save. | ||
*/ | ||
fun saveYear(year: String) | ||
|
||
/** | ||
* Gets the school year. | ||
* | ||
* @return the year. | ||
*/ | ||
fun getYear(): String | ||
} |