Skip to content

Commit

Permalink
add/#9: ResponseFriendDto 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
youjin09222 committed May 8, 2024
1 parent 191999e commit 4391afa
Showing 1 changed file with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<FriendInfo>,
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
)

0 comments on commit 4391afa

Please sign in to comment.