Compare commits
2 Commits
f46ae8f521
...
2566402280
| Author | SHA1 | Date |
|---|---|---|
|
|
2566402280 | |
|
|
400b290ffc |
|
|
@ -56,9 +56,6 @@ public interface ApiService {
|
|||
@POST("anime/add")
|
||||
Call<ApiResponse> insertAnime(@Body AnimeEntity anime);
|
||||
|
||||
@GET("anime/list/{userId}")
|
||||
Call<List<AnimeEntity>> getAnimeByUser(@Path("userId") int userId);
|
||||
|
||||
// Scroll infinito: obtener lista paginada
|
||||
@GET("/anime/list/{userId}")
|
||||
Call<AnimePageResponse> getAnimes(
|
||||
|
|
@ -67,9 +64,6 @@ public interface ApiService {
|
|||
@Query("size") int size
|
||||
);
|
||||
|
||||
@GET("anime/airing")
|
||||
Call<List<AnimeEntity>> getAiringAnime();
|
||||
|
||||
@PUT("anime/{id}")
|
||||
Call<ApiResponse> updateAnime(@Path("id") int animeId, @Body AnimeEntity anime);
|
||||
|
||||
|
|
@ -80,9 +74,6 @@ public interface ApiService {
|
|||
@POST("manga/add")
|
||||
Call<ApiResponse> insertManga(@Body MangaEntity manga);
|
||||
|
||||
@GET("manga/list/{userId}")
|
||||
Call<List<MangaEntity>> getMangaByUser(@Path("userId") int userId);
|
||||
|
||||
@GET("/manga/list/{userId}")
|
||||
Call<MangaPageResponse> getMangas(
|
||||
@Path("userId") int userId,
|
||||
|
|
|
|||
|
|
@ -140,7 +140,6 @@ public class AddAnimeFragment extends Fragment {
|
|||
anime.setUserId(userId);
|
||||
anime.setTitle(selected.getTitle());
|
||||
|
||||
// ✅ Si no hay imagen, se usa una predeterminada
|
||||
if (selected.getImageUrl() == null || selected.getImageUrl().isEmpty()) {
|
||||
selectedImageUrl = "android.resource://" + requireContext().getPackageName() + "/" + R.drawable.sample_cover;
|
||||
} else {
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 233 B |
|
|
@ -84,7 +84,8 @@
|
|||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:src="@drawable/ic_comment"
|
||||
app:tint="@color/gray" />
|
||||
app:tint="@color/gray"
|
||||
android:backgroundTint="@color/primary"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
|||
Loading…
Reference in New Issue