Skip to content

Commit

Permalink
fix: data
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiationX committed Sep 20, 2021
1 parent 35e2afa commit 811d197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -21,6 +21,7 @@ data class YooMoneyDialogResponse(
val btCancelText: String
) {

@JsonClass(generateAdapter = true)
data class Amounts(
@Json(name = "title")
val title: String,
Expand All @@ -32,6 +33,7 @@ data class YooMoneyDialogResponse(
val items: List<Int>
)

@JsonClass(generateAdapter = true)
data class PaymentTypes(
@Json(name = "title")
val title: String,
Expand All @@ -41,13 +43,15 @@ data class YooMoneyDialogResponse(
val items: List<PaymentType>
)

@JsonClass(generateAdapter = true)
data class PaymentType(
@Json(name = "id")
val id: String,
@Json(name = "title")
val title: String
)

@JsonClass(generateAdapter = true)
data class YooMoneyForm(
@Json(name = "receiver")
val receiver: String,
Expand Down
Expand Up @@ -30,7 +30,7 @@ class DonationRepository(
fun observerDonationInfo(): Observable<DonationInfo> = donationHolder
.observe()
.map {
Log.d("kekeke","observerDonationInfo $it")
Log.d("kekeke","observerDonationInfo ${it.detail.yooMoneyDialog}")
it.toDomain() }
.subscribeOn(schedulers.io())
.observeOn(schedulers.ui())
Expand Down

0 comments on commit 811d197

Please sign in to comment.