Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guardado de datos usando SharedPreferences. #14

Merged
merged 7 commits into from
Apr 4, 2024
Merged

Conversation

Richi-Mi
Copy link
Collaborator

@Richi-Mi Richi-Mi commented Apr 3, 2024

A pesar de que de momento el guardado de datos se hara mediante el uso de la clase Shared Preferences, se creo una interfaz para que si en un futuro se usa base de datos o alguna otra forma de almacenamiento de datos sea facil de implementar.

interface Almacenamiento {
    fun savePet( pet: Pet )
    fun saveDevice( device: Device )
    fun getPet( id: Long ) : Pet?
    fun getDevice() : Device
}

Asi como tambien se comenzo de diseño de una interfaz para el guardado de datos de la mascota.
img_ref

@Richi-Mi
Copy link
Collaborator Author

Richi-Mi commented Apr 3, 2024

Falta conectar la Pantalla con el guardado de datos.

@NeftaliYagua NeftaliYagua merged commit c1bf967 into master Apr 4, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants