-
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.
Setup persistence for NowPlayingFragment.java
- Loading branch information
1 parent
d241754
commit ec67f27
Showing
8 changed files
with
173 additions
and
24 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
app/src/main/java/com/shashank/moviedb/model/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.shashank.moviedb.model; | ||
|
||
import androidx.room.ColumnInfo; | ||
import androidx.room.Entity; | ||
import androidx.room.PrimaryKey; | ||
|
||
@Entity(tableName = "nowplaying_movie_ids") | ||
public class NowPlayingMovieIdsEntity { | ||
|
||
@PrimaryKey(autoGenerate = false) | ||
@ColumnInfo(name = "movie_id") | ||
private Long movieId; | ||
|
||
public NowPlayingMovieIdsEntity(Long movieId) { | ||
this.movieId = movieId; | ||
} | ||
|
||
public Long getMovieId() { | ||
return movieId; | ||
} | ||
|
||
public void setMovieId(Long movieId) { | ||
this.movieId = movieId; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
app/src/main/java/com/shashank/moviedb/model/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.shashank.moviedb.model; | ||
|
||
import androidx.room.ColumnInfo; | ||
import androidx.room.Entity; | ||
import androidx.room.PrimaryKey; | ||
|
||
@Entity(tableName = "trending_movie_ids") | ||
public class TrendingMovieIdsEntity { | ||
|
||
@PrimaryKey(autoGenerate = false) | ||
@ColumnInfo(name = "movie_id") | ||
private Long movieId; | ||
|
||
public TrendingMovieIdsEntity(Long movieId) { | ||
this.movieId = movieId; | ||
} | ||
|
||
public Long getMovieId() { | ||
return movieId; | ||
} | ||
|
||
public void setMovieId(Long movieId) { | ||
this.movieId = movieId; | ||
} | ||
} |
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