-
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 #98 from YAPP-Github/feature/issue-61-share-plan-ui
[ISSUE-61] 약속 공유하기 UI 및 카카오톡 공유 기능을 구현합니다
- Loading branch information
Showing
17 changed files
with
492 additions
and
60 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
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
32 changes: 32 additions & 0 deletions
32
presentation/src/main/java/com/yapp/growth/presentation/ui/createPlan/share/ShareContract.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,32 @@ | ||
package com.yapp.growth.presentation.ui.createPlan.share | ||
|
||
import com.yapp.growth.base.ViewEvent | ||
import com.yapp.growth.base.ViewSideEffect | ||
import com.yapp.growth.base.ViewState | ||
|
||
class ShareContract { | ||
data class ShareViewState( | ||
val shareUrl: String = "planz/link/sample/125", // TODO: 공유 URL | ||
val snackBarType: SnackBarType = SnackBarType.SUCCESS, | ||
) : ViewState { | ||
enum class SnackBarType { | ||
SUCCESS, | ||
FAIL | ||
} | ||
} | ||
|
||
sealed class ShareSideEffect : ViewSideEffect { | ||
object FinishCreatePlan : ShareSideEffect() | ||
object CopyShareUrl : ShareSideEffect() | ||
object ShowSuccessSnackBar : ShareSideEffect() | ||
object ShowFailToShareSnackBar : ShareSideEffect() | ||
object SendKakaoShareMessage : ShareSideEffect() | ||
} | ||
|
||
sealed class ShareEvent : ViewEvent { | ||
object OnClickExit : ShareEvent() | ||
object OnClickCopy : ShareEvent() | ||
object OnClickShare : ShareEvent() | ||
object FailToShare : ShareEvent() | ||
} | ||
} |
Oops, something went wrong.