Skip to content

Commit

Permalink
Merge pull request #294 from team-winey/feature/hotfix-mypage-getUser
Browse files Browse the repository at this point in the history
  • Loading branch information
sxunea authored May 15, 2024
2 parents 5b6751a + f366afe commit 54633f1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ data class ResponseGetUserDto(
val userId: Int,
@SerialName("nickname")
val nickname: String,
@SerialName("createdDday")
val createdDday: Int,
@SerialName("userLevel")
val userLevel: String,
@SerialName("fcmIsAllowed")
Expand All @@ -23,8 +25,6 @@ data class ResponseGetUserDto(
val accumulatedAmount: Int,
@SerialName("accumulatedCount")
val accumulatedCount: Int,
@SerialName("amountSavedHundredDays")
val amountSavedHundredDays: Int,
@SerialName("amountSavedTwoWeeks")
val amountSavedTwoWeeks: Int,
@SerialName("amountSpentTwoWeeks")
Expand All @@ -42,7 +42,7 @@ data class ResponseGetUserDto(
fcmIsAllowed = userData.fcmIsAllowed,
accumulatedAmount = userData.accumulatedAmount,
accumulatedCount = userData.accumulatedCount,
amountSavedHundredDays = userData.amountSavedHundredDays,
createdDday = userData.createdDday,
amountSavedTwoWeeks = userData.amountSavedTwoWeeks,
amountSpentTwoWeeks = userData.amountSpentTwoWeeks,
remainingAmount = userData.remainingAmount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class DataStoreRepositoryImpl @Inject constructor(
fcmIsAllowed = true,
accumulatedAmount = 0,
accumulatedCount = 0,
amountSavedHundredDays = 0,
createdDday = 0,
amountSavedTwoWeeks = 0,
amountSpentTwoWeeks = 0,
remainingCount = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ data class UserV2(
val fcmIsAllowed: Boolean,
val accumulatedAmount: Int,
val accumulatedCount: Int,
val amountSavedHundredDays: Int,
val createdDday: Int,
val amountSavedTwoWeeks: Int,
val amountSpentTwoWeeks: Int,
val remainingAmount: Int,
Expand Down
14 changes: 7 additions & 7 deletions app/src/main/res/layout/fragment_my_page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@

<TextView
android:id="@+id/tv_mypage_item_save"
setAmount="@{data.amountSavedHundredDays}"
setPrefix="@{@string/mypage_save_for_100days_prefix}"
setSuffix="@{@string/mypage_save_for_100days_suffix}"
setAmount="@{data.accumulatedAmount}"
setPrefix="@{data.createdDday + @string/mypage_saved_after_joined_prefix}"
setSuffix="@{@string/mypage_saved_after_joined_suffix}"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
Expand Down Expand Up @@ -371,7 +371,7 @@
app:layout_constraintEnd_toStartOf="@+id/l_mypage_item_chicken"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:savedAmount="@{data.amountSavedHundredDays}" />
app:savedAmount="@{data.accumulatedAmount}" />

<include
android:id="@+id/l_mypage_item_chicken"
Expand All @@ -384,7 +384,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/l_mypage_item_coffee"
app:layout_constraintTop_toTopOf="parent"
app:savedAmount="@{data.amountSavedHundredDays}" />
app:savedAmount="@{data.accumulatedAmount}" />

</androidx.constraintlayout.widget.ConstraintLayout>

Expand All @@ -408,7 +408,7 @@
app:layout_constraintEnd_toStartOf="@+id/l_mypage_item_airpod"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:savedAmount="@{data.amountSavedHundredDays}" />
app:savedAmount="@{data.accumulatedAmount}" />

<include
android:id="@+id/l_mypage_item_airpod"
Expand All @@ -420,7 +420,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/l_mypage_item_sneakers"
app:layout_constraintTop_toTopOf="parent"
app:savedAmount="@{data.amountSavedHundredDays}" />
app:savedAmount="@{data.accumulatedAmount}" />

</androidx.constraintlayout.widget.ConstraintLayout>

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@
<string name="mypage_2weeks_title">์ตœ๊ทผ 2์ฃผ๊ฐ„</string>
<string name="mypage_description_eat">%s ์ด๋งŒํผ\n๋จน์„ ์ˆ˜ ์žˆ์–ด์š”</string>
<string name="mypage_description_buy">%s ์ด๋งŒํผ\n์‚ด ์ˆ˜ ์žˆ์–ด์š”</string>
<string name="mypage_save_for_100days_prefix">100์ผ๊ฐ„ ์ด&#160;</string>
<string name="mypage_save_for_100days_suffix">์›์„ ์•„๊ผˆ๋„ค์š”.</string>
<string name="mypage_saved_after_joined_prefix">์ผ๊ฐ„ ์ด&#160;</string>
<string name="mypage_saved_after_joined_suffix">์›์„ ์•„๊ผˆ๋„ค์š”.</string>
<string name="mypage_reamining_amount">%s์›๋งŒ ๋”!</string>
<string name="mypage_lv4">์ ˆ์•ฝ์„ ํ†ตํ•ด ํ™ฉ์ œ๋ฅผ ๊ณ„์† ์œ ์ง€ํ•ด ๋ณด์„ธ์š”!</string>
<string name="mypage_current_amount">%s์› ์ ˆ์•ฝ์ค‘</string>
Expand Down

0 comments on commit 54633f1

Please sign in to comment.