This repository has been archived by the owner on Nov 3, 2022. 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.
Merge pull request #554 from TeamBeMe/feature/l2hyunwoo_firebase
Merge l2hyunwoo develop
- Loading branch information
Showing
24 changed files
with
212 additions
and
7 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
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
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/teambeme/beme/main/model/ScreenName.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,18 @@ | ||
package com.teambeme.beme.main.model | ||
|
||
enum class ScreenName( | ||
private val index: Int, | ||
private val screenName: String | ||
) { | ||
HOME(0, "HomeFragment"), | ||
EXPLORE(1, "ExploreFragment"), | ||
FOLLOWING(2, "FollowingFragment"), | ||
MYPAGE(3, "MyPageFragment"); | ||
|
||
companion object { | ||
fun of(index: Int): String { | ||
return values().find { index == it.index }?.screenName | ||
?: throw IllegalArgumentException("도대체 이 숫자는 어디서 나온거죠? 고양이 수: $index") | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
app/src/main/java/com/teambeme/beme/mypage/model/CategoryFilter.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.teambeme.beme.mypage.model | ||
|
||
import com.teambeme.beme.R | ||
|
||
enum class CategoryFilter( | ||
private val checkId: Int, | ||
private val itemId: String | ||
) { | ||
VALUES(R.id.chip_write_1, "CLICK_VALUES_MPFILTER"), | ||
RELATIONSHIP(R.id.chip_write_2, "CLICK_RELATIONSHIP_MPFILTER"), | ||
LOVE(R.id.chip_write_3, "CLICK_LOVE_MPFILTER"), | ||
DAILYLIFE(R.id.chip_write_4, "CLICK_DAILYLIFE_MPFILTER"), | ||
ME(R.id.chip_write_5, "CLICK_ME_MPFILTER"), | ||
STORY(R.id.chip_write_6, "CLICK_STORY_MPFILTER"); | ||
|
||
companion object { | ||
fun asItemId(checkId: Int): String { | ||
return values().find { it.checkId == checkId }?.itemId | ||
?: throw IllegalArgumentException("무슨 범위여 이게 $checkId") | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
app/src/main/java/com/teambeme/beme/mypage/model/PublicRange.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.teambeme.beme.mypage.model | ||
|
||
import com.teambeme.beme.R | ||
|
||
enum class PublicRange( | ||
private val checkId: Int, | ||
private val itemId: String | ||
) { | ||
ALL(R.id.chip_range_1, "CLICK_ALL_MPFILTER"), | ||
OPEN(R.id.chip_range_2, "CLICK_OPEN_MPFILTER"), | ||
PRIVATE(R.id.chip_range_3, "CLICK_PRIVATE_MPFILTER"); | ||
|
||
companion object { | ||
fun asItemId(checkId: Int): String { | ||
return values().find { it.checkId == checkId }?.itemId | ||
?: throw IllegalArgumentException("무슨 범위여 이게 $checkId") | ||
} | ||
} | ||
} |
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
Oops, something went wrong.