Skip to content

Commit

Permalink
feat: add data classes for proposal response
Browse files Browse the repository at this point in the history
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
OkelloSam21 committed Aug 18, 2024
1 parent d9cc593 commit 4a1e9ad
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
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
)
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
)

0 comments on commit 4a1e9ad

Please sign in to comment.