diff --git a/app/src/main/java/com/sopt/now/test/data/dto/response/ResponseFriendInfoDto.kt b/app/src/main/java/com/sopt/now/test/data/dto/response/ResponseFriendInfoDto.kt new file mode 100644 index 0000000..e1d1538 --- /dev/null +++ b/app/src/main/java/com/sopt/now/test/data/dto/response/ResponseFriendInfoDto.kt @@ -0,0 +1,40 @@ +package com.sopt.now.test.data.dto.response + +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable + +@Serializable +data class ResponseFriendDto( + @SerialName("page") + val page: Int, + @SerialName("per_page") + val perPage: Int, + @SerialName("total") + val total: Int, + @SerialName("total_pages") + val totalPages: Int, + val data: List, + val support: Support +) + +@Serializable +data class FriendInfo( + @SerialName("id") + val id: Int, + @SerialName("email") + val email: String, + @SerialName("first_name") + val firstName: String, + @SerialName("last_name") + val lastName: String, + @SerialName("avatar") + val avatar: String, +) + +@Serializable +data class Support( + @SerialName("url") + val url: String, + @SerialName("text") + val text: String +)