-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec67f27
commit 0f10bd9
Showing
21 changed files
with
491 additions
and
40 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
app/src/main/java/com/shashank/moviedb/data/ResourceCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.shashank.moviedb.data; | ||
|
||
public interface ResourceCallback { | ||
void onResponse(Resource resource); | ||
public interface ResourceCallback<T> { | ||
void onResponse(Resource<T> resource); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/src/main/java/com/shashank/moviedb/data/local/entity/FavouriteMovieIdsEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.shashank.moviedb.data.local.entity; | ||
|
||
import androidx.room.ColumnInfo; | ||
import androidx.room.Entity; | ||
import androidx.room.PrimaryKey; | ||
|
||
@Entity(tableName = "favourite_movie_ids") | ||
public class FavouriteMovieIdsEntity { | ||
|
||
@PrimaryKey(autoGenerate = false) | ||
@ColumnInfo(name = "movie_id") | ||
private Long movieId; | ||
|
||
public FavouriteMovieIdsEntity(Long movieId) { | ||
this.movieId = movieId; | ||
} | ||
|
||
public Long getMovieId() { | ||
return movieId; | ||
} | ||
|
||
public void setMovieId(Long movieId) { | ||
this.movieId = movieId; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...viedb/model/NowPlayingMovieIdsEntity.java → ...ocal/entity/NowPlayingMovieIdsEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...moviedb/model/TrendingMovieIdsEntity.java → .../local/entity/TrendingMovieIdsEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.