-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…rialized-name #130 proguard 추가 및 SerializedName 추가
- Loading branch information
Showing
49 changed files
with
312 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
3 changes: 3 additions & 0 deletions
3
domain/src/main/java/com/jjbaksa/domain/model/inquiry/Inquiry.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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package com.jjbaksa.domain.model.inquiry | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class Inquiry( | ||
@SerializedName("content") | ||
val content: List<InquiryContent> = emptyList() | ||
) |
11 changes: 11 additions & 0 deletions
11
domain/src/main/java/com/jjbaksa/domain/model/inquiry/InquiryContent.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 |
---|---|---|
@@ -1,13 +1,24 @@ | ||
package com.jjbaksa.domain.model.inquiry | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class InquiryContent( | ||
@SerializedName("id") | ||
val id: Long = 0, | ||
@SerializedName("answer") | ||
val answer: String = "", | ||
@SerializedName("content") | ||
val content: String = "", | ||
@SerializedName("createdAt") | ||
val createdAt: String = "", | ||
@SerializedName("createdBy") | ||
val createdBy: String = "", | ||
@SerializedName("inquiryImages") | ||
val inquiryImages: List<InquiryImages> = emptyList(), | ||
@SerializedName("isSecreted") | ||
val isSecreted: Int = 0, | ||
@SerializedName("title") | ||
var title: String = "", | ||
@SerializedName("expandable") | ||
var expandable: Boolean = false | ||
) |
5 changes: 5 additions & 0 deletions
5
domain/src/main/java/com/jjbaksa/domain/model/inquiry/InquiryImages.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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
package com.jjbaksa.domain.model.inquiry | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class InquiryImages( | ||
@SerializedName("imageUrl") | ||
val imageUrl: String = "", | ||
@SerializedName("originalName") | ||
val originalName: String = "", | ||
@SerializedName("path") | ||
val path: String = "" | ||
) |
4 changes: 4 additions & 0 deletions
4
domain/src/main/java/com/jjbaksa/domain/model/mainpage/UserLocation.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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package com.jjbaksa.domain.model.mainpage | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class UserLocation( | ||
@SerializedName("latitude") | ||
val latitude: Double = 37.toDouble(), | ||
@SerializedName("longitude") | ||
val longitude: Double = 127.toDouble(), | ||
) |
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package com.jjbaksa.domain.model.post | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class Post( | ||
@SerializedName("content") | ||
val content: List<PostContent> = emptyList() | ||
) |
5 changes: 5 additions & 0 deletions
5
domain/src/main/java/com/jjbaksa/domain/model/post/PostContent.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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
package com.jjbaksa.domain.model.post | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class PostContent( | ||
@SerializedName("id") | ||
val id: Int = 0, | ||
@SerializedName("title") | ||
val title: String = "", | ||
@SerializedName("createdAt") | ||
val createdAt: String = "" | ||
) |
6 changes: 6 additions & 0 deletions
6
domain/src/main/java/com/jjbaksa/domain/model/post/PostDetail.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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
package com.jjbaksa.domain.model.post | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class PostDetail( | ||
@SerializedName("id") | ||
val id: Int = 0, | ||
@SerializedName("title") | ||
val title: String = "", | ||
@SerializedName("content") | ||
val content: String = "", | ||
@SerializedName("createdAt") | ||
val createdAt: String = "" | ||
) |
3 changes: 3 additions & 0 deletions
3
domain/src/main/java/com/jjbaksa/domain/model/review/FollowerReviewShops.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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package com.jjbaksa.domain.model.review | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class FollowerReviewShops( | ||
@SerializedName("content") | ||
val content: List<FollowerReviewShopsContent> = emptyList() | ||
) |
8 changes: 8 additions & 0 deletions
8
domain/src/main/java/com/jjbaksa/domain/model/review/FollowerReviewShopsContent.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 |
---|---|---|
@@ -1,10 +1,18 @@ | ||
package com.jjbaksa.domain.model.review | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class FollowerReviewShopsContent( | ||
@SerializedName("id") | ||
val id: Int = 0, | ||
@SerializedName("content") | ||
val content: String = "", | ||
@SerializedName("rate") | ||
val rate: Int = 0, | ||
@SerializedName("createdAt") | ||
val createdAt: String = "", | ||
@SerializedName("userReviewResponse") | ||
val userReviewResponse: UserReview = UserReview(), | ||
@SerializedName("shopPlaceId") | ||
val shopPlaceId: String = "" | ||
) |
3 changes: 3 additions & 0 deletions
3
domain/src/main/java/com/jjbaksa/domain/model/review/MyReviewShops.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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package com.jjbaksa.domain.model.review | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class MyReviewShops( | ||
@SerializedName("content") | ||
val content: List<MyReviewShopsContent> = emptyList() | ||
) |
6 changes: 6 additions & 0 deletions
6
domain/src/main/java/com/jjbaksa/domain/model/review/MyReviewShopsContent.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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
package com.jjbaksa.domain.model.review | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class MyReviewShopsContent( | ||
@SerializedName("id") | ||
val id: Int = 0, | ||
@SerializedName("content") | ||
val content: String = "", | ||
@SerializedName("rate") | ||
val rate: Int = 0, | ||
@SerializedName("createdAt") | ||
val createdAt: String = "" | ||
) |
4 changes: 4 additions & 0 deletions
4
domain/src/main/java/com/jjbaksa/domain/model/review/ReviewImages.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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package com.jjbaksa.domain.model.review | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ReviewImages( | ||
@SerializedName("originalName") | ||
val originalName: String? = "", | ||
@SerializedName("imageUrl") | ||
val imageUrl: String? = "" | ||
) |
3 changes: 3 additions & 0 deletions
3
domain/src/main/java/com/jjbaksa/domain/model/review/ReviewShop.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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package com.jjbaksa.domain.model.review | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ReviewShop( | ||
@SerializedName("content") | ||
val content: List<ReviewShopContent> = emptyList() | ||
) |
8 changes: 8 additions & 0 deletions
8
domain/src/main/java/com/jjbaksa/domain/model/review/ReviewShopContent.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 |
---|---|---|
@@ -1,10 +1,18 @@ | ||
package com.jjbaksa.domain.model.review | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ReviewShopContent( | ||
@SerializedName("shopId") | ||
val shopId: Int = 0, | ||
@SerializedName("placeId") | ||
val placeId: String = "", | ||
@SerializedName("name") | ||
val name: String = "", | ||
@SerializedName("category") | ||
val category: String = "", | ||
@SerializedName("scrap") | ||
val scrap: Int = 0, | ||
@SerializedName("photos") | ||
val photos: List<String> = emptyList() | ||
) |
7 changes: 7 additions & 0 deletions
7
domain/src/main/java/com/jjbaksa/domain/model/review/ReviewShopDetail.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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
package com.jjbaksa.domain.model.review | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ReviewShopDetail( | ||
@SerializedName("id") | ||
val id: Int? = 0, | ||
@SerializedName("content") | ||
val content: String? = "", | ||
@SerializedName("rate") | ||
val rate: Int? = 0, | ||
@SerializedName("createdAt") | ||
val createdAt: String? = "", | ||
@SerializedName("reviewImages") | ||
val reviewImages: List<ReviewImages>? = emptyList(), | ||
) |
3 changes: 3 additions & 0 deletions
3
domain/src/main/java/com/jjbaksa/domain/model/review/ReviewShopLastDate.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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package com.jjbaksa.domain.model.review | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ReviewShopLastDate( | ||
@SerializedName("lastDate") | ||
val lastDate: String = "" | ||
) |
5 changes: 5 additions & 0 deletions
5
domain/src/main/java/com/jjbaksa/domain/model/review/UserReview.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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
package com.jjbaksa.domain.model.review | ||
|
||
import com.google.gson.annotations.SerializedName | ||
import com.jjbaksa.domain.model.user.UserProfileImage | ||
|
||
data class UserReview( | ||
@SerializedName("id") | ||
val id: Int = 0, | ||
@SerializedName("account") | ||
val account: String = "", | ||
@SerializedName("nickname") | ||
val nickname: String = "", | ||
@SerializedName("profileImage") | ||
val profileImage: UserProfileImage = UserProfileImage() | ||
) |
7 changes: 7 additions & 0 deletions
7
domain/src/main/java/com/jjbaksa/domain/model/scrap/AddShopScrap.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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
package com.jjbaksa.domain.model.scrap | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class AddShopScrap( | ||
@SerializedName("id") | ||
val id: Int = 0, | ||
@SerializedName("createdAt") | ||
val createdAt: Long = 0, | ||
@SerializedName("updatedAt") | ||
val updatedAt: Long = 0, | ||
@SerializedName("directory") | ||
val directory: Int = 0, | ||
@SerializedName("shopId") | ||
val shopId: Int = 0 | ||
) |
Oops, something went wrong.