This repository has been archived by the owner on Oct 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
25 changed files
with
195 additions
and
111 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
5 changes: 5 additions & 0 deletions
5
app/src/main/java/com/teamounce/ounce/data/local/singleton/BaseValue.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,5 @@ | ||
package com.teamounce.ounce.data.local.singleton | ||
|
||
object BaseValue { | ||
const val baseUrl = "http://3.39.215.185:8080" | ||
} |
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
19 changes: 19 additions & 0 deletions
19
app/src/main/java/com/teamounce/ounce/di/SingletonModule.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,19 @@ | ||
package com.teamounce.ounce.di | ||
|
||
import android.content.Context | ||
import com.teamounce.ounce.util.CatInfoStore | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.android.qualifiers.ApplicationContext | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
object SingletonModule { | ||
@Singleton | ||
@Provides | ||
fun provideCatInfoStore(@ApplicationContext context: Context): CatInfoStore = | ||
CatInfoStore(context) | ||
} |
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/teamounce/ounce/feed/model/ResponseFeedReviewData.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,21 +1,37 @@ | ||
package com.teamounce.ounce.feed.model | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ResponseFeedReviewData( | ||
@SerializedName("data") | ||
val data: List<Data>, | ||
@SerializedName("responseMessage") | ||
val responseMessage: String | ||
) { | ||
data class Data( | ||
@SerializedName("createdDate") | ||
val createdDate: String, | ||
@SerializedName("manufacturer") | ||
val manufacturer: String, | ||
@SerializedName("memo") | ||
val memo: String, | ||
@SerializedName("myImg") | ||
val myImg: String, | ||
@SerializedName("preference") | ||
val preference: Int, | ||
@SerializedName("productImg") | ||
val productImg: String, | ||
@SerializedName("productName") | ||
val productName: String, | ||
@SerializedName("reviewIndex") | ||
val reviewIndex: Int, | ||
@SerializedName("tag1") | ||
val tag1: String, | ||
@SerializedName("tag2") | ||
val tag2: String, | ||
@SerializedName("tag3") | ||
val tag3: String, | ||
@SerializedName("updatedDate") | ||
val updatedDate: String | ||
) | ||
} |
7 changes: 7 additions & 0 deletions
7
app/src/main/java/com/teamounce/ounce/feed/model/ResponseFilterData.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,12 +1,19 @@ | ||
package com.teamounce.ounce.feed.model | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ResponseFilterData( | ||
@SerializedName("data") | ||
val data: Data, | ||
@SerializedName("responseMessage") | ||
val responseMessage: String | ||
) { | ||
data class Data( | ||
@SerializedName("manu") | ||
val manu: List<String>, | ||
@SerializedName("tag") | ||
val tag: List<String>, | ||
@SerializedName("type") | ||
val type: List<String> | ||
) | ||
} |
7 changes: 6 additions & 1 deletion
7
app/src/main/java/com/teamounce/ounce/login/model/RequestGoogleLogin.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,3 +1,8 @@ | ||
package com.teamounce.ounce.login.model | ||
|
||
data class RequestGoogleLogin(val token: String) | ||
import com.google.gson.annotations.SerializedName | ||
|
||
data class RequestGoogleLogin( | ||
@SerializedName("token") | ||
val token: String | ||
) |
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
Oops, something went wrong.