-
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.
feat: add data classes for proposal response
This commit introduces data classes to represent proposal responses: - `Status`: Represents the status of a proposal with a code and value. - `ProposalData`: Represents a single proposal with details like message, CV, status, job ID, amount, ID, and user ID.
- Loading branch information
1 parent
d9cc593
commit 4a1e9ad
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...src/main/java/com/samuelokello/kazihub/domain/model/proposal/proposalResponse/Proposal.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,21 @@ | ||
package com.samuelokello.kazihub.domain.model.proposal.proposalResponse | ||
|
||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ProposalData( | ||
@SerializedName("message") | ||
val message: String?, | ||
@SerializedName("cv") | ||
val cv: String, | ||
@SerializedName("status") | ||
val status: Status, | ||
@SerializedName("job_id") | ||
val jobId: Int, | ||
@SerializedName("amount") | ||
val amount: Double, | ||
@SerializedName("id") | ||
val id: Int, | ||
@SerializedName("user_id") | ||
val userId: Int | ||
) |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/samuelokello/kazihub/domain/model/proposal/proposalResponse/Status.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.samuelokello.kazihub.domain.model.proposal.proposalResponse | ||
|
||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class Status( | ||
@SerializedName("code") | ||
val code: String, | ||
@SerializedName("value") | ||
val value: String | ||
) |