-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(study set): tạo hit cho người dùng ở chế độ học write
- Loading branch information
Showing
17 changed files
with
283 additions
and
46 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
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/pwhs/quickmem/data/dto/study_set/CreateWriteHintAIRequestDto.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.pwhs.quickmem.data.dto.study_set | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class CreateWriteHintAIRequestDto( | ||
@SerializedName("flashcardId") | ||
val flashcardId: String, | ||
@SerializedName("studySetTitle") | ||
val studySetTitle: String, | ||
@SerializedName("studySetDescription") | ||
val studySetDescription: String, | ||
@SerializedName("question") | ||
val question: String, | ||
@SerializedName("answer") | ||
val answer: String, | ||
) |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/pwhs/quickmem/data/dto/study_set/CreateWriteHintAIResponseDto.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.pwhs.quickmem.data.dto.study_set | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class CreateWriteHintAIResponseDto( | ||
@SerializedName("flashcardId") | ||
val flashcardId: String, | ||
@SerializedName("aiHint") | ||
val aiHint: String, | ||
) |
20 changes: 20 additions & 0 deletions
20
app/src/main/java/com/pwhs/quickmem/data/mapper/study_set/CreateWriteHintAIRequestMapper.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,20 @@ | ||
package com.pwhs.quickmem.data.mapper.study_set | ||
|
||
import com.pwhs.quickmem.data.dto.study_set.CreateWriteHintAIRequestDto | ||
import com.pwhs.quickmem.domain.model.study_set.CreateWriteHintAIRequestModel | ||
|
||
fun CreateWriteHintAIRequestDto.toModel() = CreateWriteHintAIRequestModel( | ||
flashcardId = flashcardId, | ||
studySetTitle = studySetTitle, | ||
studySetDescription = studySetDescription, | ||
question = question, | ||
answer = answer, | ||
) | ||
|
||
fun CreateWriteHintAIRequestModel.toDto() = CreateWriteHintAIRequestDto( | ||
flashcardId = flashcardId, | ||
studySetTitle = studySetTitle, | ||
studySetDescription = studySetDescription, | ||
question = question, | ||
answer = answer, | ||
) |
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/pwhs/quickmem/data/mapper/study_set/CreateWriteHintAIResponseMapper.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,14 @@ | ||
package com.pwhs.quickmem.data.mapper.study_set | ||
|
||
import com.pwhs.quickmem.data.dto.study_set.CreateWriteHintAIResponseDto | ||
import com.pwhs.quickmem.domain.model.study_set.CreateWriteHintAIResponseModel | ||
|
||
fun CreateWriteHintAIResponseDto.toModel() = CreateWriteHintAIResponseModel( | ||
flashcardId = flashcardId, | ||
aiHint = aiHint, | ||
) | ||
|
||
fun CreateWriteHintAIResponseModel.toDto() = CreateWriteHintAIResponseDto( | ||
flashcardId = flashcardId, | ||
aiHint = aiHint, | ||
) |
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
9 changes: 9 additions & 0 deletions
9
app/src/main/java/com/pwhs/quickmem/domain/model/study_set/CreateWriteHintAIRequestModel.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,9 @@ | ||
package com.pwhs.quickmem.domain.model.study_set | ||
|
||
data class CreateWriteHintAIRequestModel( | ||
val flashcardId: String, | ||
val studySetTitle: String, | ||
val studySetDescription: String, | ||
val question: String, | ||
val answer: String, | ||
) |
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/pwhs/quickmem/domain/model/study_set/CreateWriteHintAIResponseModel.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,6 @@ | ||
package com.pwhs.quickmem.domain.model.study_set | ||
|
||
data class CreateWriteHintAIResponseModel( | ||
val flashcardId: String, | ||
val aiHint: 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
Oops, something went wrong.