-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...src/main/java/com/android/mediproject/core/model/favorites/AddFavoriteMedicineResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.android.mediproject.core.model.favorites | ||
|
||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class AddFavoriteMedicineResponse( | ||
@SerialName("favoriteMedicineID") val favoriteMedicineID: Int, // 86 | ||
@SerialName("message") val message: String | ||
) |
10 changes: 10 additions & 0 deletions
10
.../main/java/com/android/mediproject/core/model/favorites/DeleteFavoriteMedicineResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.android.mediproject.core.model.favorites | ||
|
||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class DeleteFavoriteMedicineResponse( | ||
@SerialName("message") val message: String | ||
) |
22 changes: 22 additions & 0 deletions
22
...l/src/main/java/com/android/mediproject/core/model/favorites/FavoriteMedicinesResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.android.mediproject.core.model.favorites | ||
|
||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class FavoriteMedicinesResponse( | ||
@SerialName("medicineList") val medicineList: List<Medicine>, | ||
@SerialName("message") val message: String | ||
) { | ||
@Serializable | ||
data class Medicine( | ||
@SerialName("ENTP_NAME") val entpName: String, // (주)한국얀센 | ||
@SerialName("ID") val medicineId: Int, // 41 | ||
@SerialName("ITEM_INGR_NAME") val itemIngrName: String, // 덱스트로메토르판브롬화수소산염수화물/슈도에페드린염산염/아세트아미노펜/클로르페니라민말레인산염 | ||
@SerialName("ITEM_NAME") val itemName: String, // 타이레놀콜드-에스정(수출명:TylenolColdTablet,TylenolColdCaplet) | ||
@SerialName("ITEM_SEQ") val itemSeq: String, // 200302348 | ||
@SerialName("PRDUCT_TYPE") val productType: String, // [01140]해열.진통.소염제 | ||
@SerialName("SPCLTY_PBLC") val medicineType: String | ||
) | ||
} |
11 changes: 11 additions & 0 deletions
11
.../src/main/java/com/android/mediproject/core/model/favorites/IsFavoriteMedicineResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.android.mediproject.core.model.favorites | ||
|
||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class IsFavoriteMedicineResponse( | ||
@SerialName("isFavorite") val isFavorite: Boolean, // false | ||
@SerialName("message") val message: String | ||
) |