-
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 #17 from omer358/dev
Resolve #11
- Loading branch information
Showing
5 changed files
with
160 additions
and
30 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
5 changes: 4 additions & 1 deletion
5
app/src/main/java/com/example/rememberme/presentation/addperson/AddPersonEvents.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,11 +1,14 @@ | ||
package com.example.rememberme.presentation.addperson | ||
|
||
import androidx.annotation.DrawableRes | ||
|
||
sealed class AddPersonEvents { | ||
data class OnFirstNameChange(val firstName: String) : AddPersonEvents() | ||
data class OnSecondNameChange(val secondName: String) : AddPersonEvents() | ||
data class OnPlaceChange(val place: String) : AddPersonEvents() | ||
data class OnTimeChange(val time: String) : AddPersonEvents() | ||
data class OnNoteChange(val note: String?) : AddPersonEvents() | ||
data class OnGenderChange(val gender: String) : AddPersonEvents() | ||
data class OnAvatarChange(val avatar: String) : AddPersonEvents() | ||
data class OnAvatarChange(@DrawableRes val avatar: Int) : AddPersonEvents() | ||
data object OnSavePerson : AddPersonEvents() | ||
} |
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