-
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.
kuring-217 남은 질문 횟수를 서버에서 받아오도록 수정 (#339)
* feature: 쿠링봇 프리뷰 데이터를 실제 로직에 맞게 수정 * feature: 쿠링봇 질문 횟수 response 클래스 추가 * feature: 쿠링봇 질문 횟수 API 추가 * feature: 쿠링봇 질문 횟수 API를 UI에 노출 * feature: 쿠링봇 질문 횟수를 서버에서 받아오게 수정 * remove: 로컬 횟수 계산 코드 제거 * refactor: try-catch 대신 runCatching 사용
- Loading branch information
Showing
10 changed files
with
63 additions
and
72 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
12 changes: 12 additions & 0 deletions
12
...e/src/main/java/com/ku_stacks/ku_ring/remote/user/response/KuringBotQueryCountResponse.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,12 @@ | ||
package com.ku_stacks.ku_ring.remote.user.response | ||
|
||
data class KuringBotQueryCountResponse( | ||
val code: Int, | ||
val message: String, | ||
val data: KuringBotQueryCountData, | ||
) | ||
|
||
data class KuringBotQueryCountData( | ||
val leftAskCount: Int, | ||
val maxAskCount: Int, | ||
) |
50 changes: 0 additions & 50 deletions
50
feature/kuringbot/src/main/java/com/ku_stacks/ku_ring/kuringbot/KuringBotMessageCounter.kt
This file was deleted.
Oops, something went wrong.
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