Skip to content

Commit

Permalink
refactor from moshi to kotlinx serialization
Browse files Browse the repository at this point in the history
Signed-off-by: Kelvin Bush <kelybush@gmail.com>
  • Loading branch information
kelvinbush committed Feb 4, 2022
1 parent ce14942 commit ff942a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class FruityRepositoryImpl @Inject constructor(
message = e.message.toString(),
))
} catch (e: IOException) {

emit(Resource.Error(
message = e.message.toString(),
))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package com.kelvinbush.nectar.domain.model

import kotlinx.serialization.Serializable

@Serializable
data class SignupUser(
val name: String,
val password: String,
val passwordConfirmation: String,
val email: String,
)

@Serializable
data class Result(
val name: String,
val password: String,
val email: String,
val name: String
)
34 changes: 0 additions & 34 deletions app/src/main/java/com/kelvinbush/nectar/util/DefaultIfNull.kt

This file was deleted.

0 comments on commit ff942a6

Please sign in to comment.