Closed coaguila closed 4 days ago
Hey, have you checked the supabase table for alerts ?
I think it needs a primary key at least.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
98.7% Coverage on New Code
0.0% Duplication on New Code
Alert View Model
Description
This PR introduces a view model for the Alerts feature that will be implemented. It closes issue #118
Changes
Added a view model to handle the alert feature that will allow a screen to create and delete their alerts as well as get all the alerts including those from other users.
Files
Added
app/src/main/java/com/android/periodpals/model/alert/AlertViewModel.kt
app/src/test/java/com/android/periodpals/model/alert/AlertViewModelTest.kt
Modified
app/src/main/java/com/android/periodpals/model/alert/Alert.kt
app/src/main/java/com/android/periodpals/model/alert/AlertDto.kt
app/src/main/java/com/android/periodpals/model/alert/AlertModel.kt
app/src/main/java/com/android/periodpals/model/alert/AlertModelSupabase.kt
app/src/test/java/com/android/periodpals/model/alert/AlertModelSupabaseTest.kt