Mejora de xml para que se vea mucho mas formal!

This commit is contained in:
santi 2025-05-30 04:22:51 +02:00
parent f46ae8f521
commit 400b290ffc
3 changed files with 0 additions and 10 deletions

View File

@ -56,9 +56,6 @@ public interface ApiService {
@POST("anime/add") @POST("anime/add")
Call<ApiResponse> insertAnime(@Body AnimeEntity anime); Call<ApiResponse> insertAnime(@Body AnimeEntity anime);
@GET("anime/list/{userId}")
Call<List<AnimeEntity>> getAnimeByUser(@Path("userId") int userId);
// Scroll infinito: obtener lista paginada // Scroll infinito: obtener lista paginada
@GET("/anime/list/{userId}") @GET("/anime/list/{userId}")
Call<AnimePageResponse> getAnimes( Call<AnimePageResponse> getAnimes(
@ -67,9 +64,6 @@ public interface ApiService {
@Query("size") int size @Query("size") int size
); );
@GET("anime/airing")
Call<List<AnimeEntity>> getAiringAnime();
@PUT("anime/{id}") @PUT("anime/{id}")
Call<ApiResponse> updateAnime(@Path("id") int animeId, @Body AnimeEntity anime); Call<ApiResponse> updateAnime(@Path("id") int animeId, @Body AnimeEntity anime);
@ -80,9 +74,6 @@ public interface ApiService {
@POST("manga/add") @POST("manga/add")
Call<ApiResponse> insertManga(@Body MangaEntity manga); Call<ApiResponse> insertManga(@Body MangaEntity manga);
@GET("manga/list/{userId}")
Call<List<MangaEntity>> getMangaByUser(@Path("userId") int userId);
@GET("/manga/list/{userId}") @GET("/manga/list/{userId}")
Call<MangaPageResponse> getMangas( Call<MangaPageResponse> getMangas(
@Path("userId") int userId, @Path("userId") int userId,

View File

@ -140,7 +140,6 @@ public class AddAnimeFragment extends Fragment {
anime.setUserId(userId); anime.setUserId(userId);
anime.setTitle(selected.getTitle()); anime.setTitle(selected.getTitle());
// Si no hay imagen, se usa una predeterminada
if (selected.getImageUrl() == null || selected.getImageUrl().isEmpty()) { if (selected.getImageUrl() == null || selected.getImageUrl().isEmpty()) {
selectedImageUrl = "android.resource://" + requireContext().getPackageName() + "/" + R.drawable.sample_cover; selectedImageUrl = "android.resource://" + requireContext().getPackageName() + "/" + R.drawable.sample_cover;
} else { } else {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 233 B