-
Notifications
You must be signed in to change notification settings - Fork 0
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
14 changed files
with
134 additions
and
27 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
18 changes: 0 additions & 18 deletions
18
app/src/main/java/com/afs/tutrd/data/model/classroom/Classroom.kt
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
app/src/main/java/com/afs/tutrd/data/model/classroom/ClassroomData.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.afs.tutrd.data.model.classroom | ||
|
||
import com.google.firebase.firestore.PropertyName | ||
|
||
// TODO 이름 바꾸기 (사유: 겹침) | ||
data class ClassroomData( | ||
@PropertyName("classroomName") | ||
val classroomName: String = "", | ||
@PropertyName("classroomProfileColor") | ||
val classroomProfileColor: String = "", | ||
@PropertyName("classroomProfileImage") | ||
val classroomProfileImage: String = "", | ||
@PropertyName("fixedCount") | ||
val fixedCount: Int = 0, | ||
@PropertyName("payMethod") | ||
val payMethod: String = "", | ||
@PropertyName("repetition") | ||
val repetition: RepetitionData = RepetitionData(), | ||
@PropertyName("timetable") | ||
val timetable: List<TimetableData> = emptyList(), | ||
@PropertyName("tuitionFee") | ||
val tuitionFee: Int = 0, | ||
@PropertyName("tuitionFeeUnit") | ||
val tuitionFeeUnit: String = "", | ||
@PropertyName("tutees") | ||
val tutees: List<String> = emptyList(), | ||
@PropertyName("tutorId") | ||
val tutorId: String = "", | ||
@PropertyName("tutoring") | ||
val tutoring: List<TutoringData> = emptyList(), | ||
) |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/afs/tutrd/data/model/classroom/HomeworkData.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.afs.tutrd.data.model.classroom | ||
|
||
import com.google.firebase.firestore.PropertyName | ||
|
||
data class HomeworkData( | ||
@PropertyName("content") | ||
val content: String = "", | ||
@get:PropertyName("isDone") | ||
@set:PropertyName("isDone") | ||
var isDone: Boolean = false | ||
) |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/afs/tutrd/data/model/classroom/HomeworkImageData.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.afs.tutrd.data.model.classroom | ||
|
||
import com.google.firebase.firestore.PropertyName | ||
|
||
data class HomeworkImageData( | ||
@PropertyName("description") | ||
val description: String = "", | ||
@PropertyName("image") | ||
val image: String = "" | ||
) |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/afs/tutrd/data/model/classroom/ProgressImagesData.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.afs.tutrd.data.model.classroom | ||
|
||
import com.google.firebase.firestore.PropertyName | ||
|
||
data class ProgressImagesData( | ||
@PropertyName("description") | ||
val description: String = "", | ||
@PropertyName("image") | ||
val image: String = "" | ||
) |
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/afs/tutrd/data/model/classroom/RepetitionData.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.afs.tutrd.data.model.classroom | ||
|
||
import com.google.firebase.firestore.PropertyName | ||
|
||
data class RepetitionData( | ||
@PropertyName("date") | ||
val date: Int = 0, | ||
@PropertyName("day") | ||
val day: String = "", | ||
@PropertyName("interval") | ||
val interval: Int = 0, | ||
@PropertyName("month") | ||
val month: Int = 0, | ||
@PropertyName("type") | ||
val type: Int = 0, | ||
@PropertyName("week") | ||
val week: Int = 0, | ||
) |
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/afs/tutrd/data/model/classroom/TimetableData.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.afs.tutrd.data.model.classroom | ||
|
||
import com.google.firebase.Timestamp | ||
import com.google.firebase.firestore.PropertyName | ||
|
||
data class TimetableData( | ||
@PropertyName("classHours") | ||
val classHours: Int = 0, | ||
@PropertyName("endDate") | ||
val endDate: Timestamp = Timestamp.now(), | ||
@PropertyName("repetition") | ||
val repetition: RepetitionData = RepetitionData(), | ||
@PropertyName("startDate") | ||
val startDate: Timestamp = Timestamp.now() | ||
|
||
) |
28 changes: 28 additions & 0 deletions
28
app/src/main/java/com/afs/tutrd/data/model/classroom/TutoringData.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.afs.tutrd.data.model.classroom | ||
|
||
import com.google.firebase.Timestamp | ||
import com.google.firebase.firestore.PropertyName | ||
|
||
data class TutoringData( | ||
@PropertyName("attendance") | ||
val attendance: List<String> = emptyList(), | ||
@PropertyName("dateTime") | ||
val dateTime: Timestamp = Timestamp.now(), | ||
@PropertyName("elapsedTime") | ||
val elapsedTime: Int = 0, | ||
@PropertyName("homework") | ||
val homework: List<HomeworkData> = emptyList(), | ||
@PropertyName("homeworkImages") | ||
val homeworkImages: List<HomeworkImageData> = emptyList(), | ||
@get:PropertyName("isComplete") | ||
@set:PropertyName("isComplete") | ||
var isComplete: Boolean = false, | ||
@PropertyName("progress") | ||
val progress: List<String> = emptyList(), | ||
@PropertyName("progressImages") | ||
val progressImages: List<ProgressImagesData> = emptyList(), | ||
@PropertyName("status") | ||
val status: Int = 0, | ||
@PropertyName("tutoringId") | ||
val tutoringId: String = "", | ||
) |
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
4 changes: 2 additions & 2 deletions
4
app/src/main/java/com/afs/tutrd/domain/repository/classroom/ClassroomRepository.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,7 +1,7 @@ | ||
package com.afs.tutrd.domain.repository.classroom | ||
|
||
import com.afs.tutrd.data.model.classroom.Classroom | ||
import com.afs.tutrd.data.model.classroom.ClassroomData | ||
|
||
interface ClassroomRepository { | ||
suspend fun fetchClassroomList(tutorId: String): Result<List<Classroom>> | ||
suspend fun fetchClassroomList(tutorId: String): Result<List<ClassroomData>> | ||
} |
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
4 changes: 2 additions & 2 deletions
4
app/src/main/java/com/afs/tutrd/presentation/classroom/contract/ClassroomState.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