-
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(class): mời người dùng vào class (#85)
Co-authored-by: Daocon <[email protected]> Co-authored-by: Nguyễn Quang Minh (NQM) <[email protected]> Co-authored-by: Nguyen Quang Minh <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Loading branch information
1 parent
c6f7b0d
commit 857b2d3
Showing
20 changed files
with
411 additions
and
18 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/pwhs/quickmem/data/dto/classes/InviteToClassRequestDto.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.classes | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class InviteToClassRequestDto( | ||
@SerializedName("classId") | ||
val classId: String, | ||
@SerializedName("username") | ||
val username: String | ||
) |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/pwhs/quickmem/data/dto/classes/InviteToClassResponseDto.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.classes | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class InviteToClassResponseDto( | ||
@SerializedName("message") | ||
val message: String, | ||
@SerializedName("status") | ||
val status: Boolean, | ||
) |
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/pwhs/quickmem/data/mapper/classes/InviteToClassRequestMapper.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.classes | ||
|
||
import com.pwhs.quickmem.data.dto.classes.InviteToClassRequestDto | ||
import com.pwhs.quickmem.domain.model.classes.InviteToClassRequestModel | ||
|
||
fun InviteToClassRequestModel.toDto() = InviteToClassRequestDto( | ||
classId = classId, | ||
username = username | ||
) | ||
|
||
fun InviteToClassRequestDto.toModel() = InviteToClassRequestModel( | ||
classId = classId, | ||
username = username | ||
) |
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/pwhs/quickmem/data/mapper/classes/InviteToClassResponseMapper.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.classes | ||
|
||
import com.pwhs.quickmem.data.dto.classes.InviteToClassResponseDto | ||
import com.pwhs.quickmem.domain.model.classes.InviteToClassResponseModel | ||
|
||
fun InviteToClassResponseDto.toModel() = InviteToClassResponseModel( | ||
message = message, | ||
status = status | ||
) | ||
|
||
fun InviteToClassResponseModel.toDto() = InviteToClassResponseDto( | ||
message = message, | ||
status = status | ||
) |
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
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/pwhs/quickmem/domain/model/classes/InviteToClassRequestModel.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.classes | ||
|
||
data class InviteToClassRequestModel( | ||
val classId: String, | ||
val username: String | ||
) |
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/pwhs/quickmem/domain/model/classes/InviteToClassResponseModel.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.classes | ||
|
||
data class InviteToClassResponseModel( | ||
val message: String, | ||
val status: Boolean, | ||
) |
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
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.