Compare commits
No commits in common. "2566402280a5d010c3e1b335f0d12607f505ac00" and "f46ae8f521da5a6cee5792acdbe920d8a081f65e" have entirely different histories.
2566402280
...
f46ae8f521
|
|
@ -56,6 +56,9 @@ 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(
|
||||||
|
|
@ -64,6 +67,9 @@ 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);
|
||||||
|
|
||||||
|
|
@ -74,6 +80,9 @@ 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,
|
||||||
|
|
|
||||||
|
|
@ -140,6 +140,7 @@ 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: 233 B After Width: | Height: | Size: 8.8 KiB |
|
|
@ -84,8 +84,7 @@
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
android:src="@drawable/ic_comment"
|
android:src="@drawable/ic_comment"
|
||||||
app:tint="@color/gray"
|
app:tint="@color/gray" />
|
||||||
android:backgroundTint="@color/primary"/>
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue