Skip to content

Commit

Permalink
🚚 :: Rename Expo DTO Package Name
Browse files Browse the repository at this point in the history
  • Loading branch information
audgns10 committed Nov 25, 2024
1 parent c0a4093 commit 6b6efb3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.school_of_company.network.datasource.expo

import com.school_of_company.network.dto.expo.request_response.ExpoRequestAndResponse
import com.school_of_company.network.dto.expo.all.ExpoRequestAndResponse
import com.school_of_company.network.dto.expo.response.ExpoIdResponse
import com.school_of_company.network.dto.expo.response.ExpoListResponse
import kotlinx.coroutines.flow.Flow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.school_of_company.network.datasource.expo

import com.school_of_company.network.api.ExpoAPI
import com.school_of_company.network.dto.expo.request_response.ExpoRequestAndResponse
import com.school_of_company.network.dto.expo.all.ExpoRequestAndResponse
import com.school_of_company.network.dto.expo.response.ExpoIdResponse
import com.school_of_company.network.dto.expo.response.ExpoListResponse
import com.school_of_company.network.util.performApiRequest
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.school_of_company.network.dto.expo.all

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class ExpoRequestAndResponse(
@Json(name = "title") val title: String,
@Json(name = "description") val description: String,
@Json(name = "startedDay") val startedDay: String, // yyyy-mm-dd
@Json(name = "finishedDay") val finishedDay: String, // yyyy-mm-dd
@Json(name = "location") val location: String,
@Json(name = "coverImage") val coverImage: String?,
@Json(name = "x") val x: Float,
@Json(name = "y") val y: Float
)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.school_of_company.network.mapper.expo.request

import com.school_of_company.model.model.expo.ExpoRequestAndResponseModel
import com.school_of_company.network.dto.expo.request_response.ExpoRequestAndResponse
import com.school_of_company.network.dto.expo.all.ExpoRequestAndResponse

fun ExpoRequestAndResponseModel.toDto(): ExpoRequestAndResponse =
ExpoRequestAndResponse(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.school_of_company.network.mapper.expo.response

import com.school_of_company.model.model.expo.ExpoRequestAndResponseModel
import com.school_of_company.network.dto.expo.request_response.ExpoRequestAndResponse
import com.school_of_company.network.dto.expo.all.ExpoRequestAndResponse

fun ExpoRequestAndResponse.toModel(): ExpoRequestAndResponseModel =
ExpoRequestAndResponseModel(
Expand Down

0 comments on commit 6b6efb3

Please sign in to comment.