From 40a7005f6d6216f57dde6451bec72464655ca64d Mon Sep 17 00:00:00 2001 From: Iliyan Germanov Date: Mon, 23 May 2022 18:26:09 +0300 Subject: [PATCH] Fix broken profile icon --- app/src/main/java/com/ivy/wallet/io/network/data/UserDTO.kt | 2 ++ .../com/ivy/wallet/io/network/request/auth/AuthResponse.kt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/ivy/wallet/io/network/data/UserDTO.kt b/app/src/main/java/com/ivy/wallet/io/network/data/UserDTO.kt index fcb34ae15a..7df9fb851b 100644 --- a/app/src/main/java/com/ivy/wallet/io/network/data/UserDTO.kt +++ b/app/src/main/java/com/ivy/wallet/io/network/data/UserDTO.kt @@ -1,5 +1,6 @@ package com.ivy.wallet.io.network.data +import com.google.gson.annotations.SerializedName import com.ivy.wallet.domain.data.AuthProviderType import com.ivy.wallet.io.persistence.data.UserEntity import java.util.* @@ -9,6 +10,7 @@ data class UserDTO( val authProviderType: AuthProviderType, var firstName: String, val lastName: String?, + @SerializedName("profilePictureUrl") val profilePicture: String?, val color: Int, diff --git a/app/src/main/java/com/ivy/wallet/io/network/request/auth/AuthResponse.kt b/app/src/main/java/com/ivy/wallet/io/network/request/auth/AuthResponse.kt index 62eddc5051..39e89b27b8 100644 --- a/app/src/main/java/com/ivy/wallet/io/network/request/auth/AuthResponse.kt +++ b/app/src/main/java/com/ivy/wallet/io/network/request/auth/AuthResponse.kt @@ -1,11 +1,11 @@ package com.ivy.wallet.io.network.request.auth import com.google.gson.annotations.SerializedName -import com.ivy.wallet.domain.data.core.User +import com.ivy.wallet.io.network.data.UserDTO data class AuthResponse( @SerializedName("user") - val user: User, + val user: UserDTO, @SerializedName("sessionToken") val sessionToken: String ) \ No newline at end of file