Tried to implement the feature
This commit is contained in:
parent
8fc5fa979d
commit
10a5741f36
6 changed files with 80 additions and 39 deletions
|
|
@ -15,7 +15,7 @@ public class PlaylistEntity {
|
|||
public static final String PLAYLIST_ID = "uid";
|
||||
public static final String PLAYLIST_NAME = "name";
|
||||
public static final String PLAYLIST_THUMBNAIL_URL = "thumbnail_url";
|
||||
//TODO: add field
|
||||
public static final String PLAYLIST_THUMBNAIL_SET = "isThumbnailSet";
|
||||
|
||||
@PrimaryKey(autoGenerate = true)
|
||||
@ColumnInfo(name = PLAYLIST_ID)
|
||||
|
|
@ -27,9 +27,14 @@ public class PlaylistEntity {
|
|||
@ColumnInfo(name = PLAYLIST_THUMBNAIL_URL)
|
||||
private String thumbnailUrl;
|
||||
|
||||
public PlaylistEntity(final String name, final String thumbnailUrl) {
|
||||
@ColumnInfo(name = PLAYLIST_THUMBNAIL_SET)
|
||||
private boolean isThumbnailSet;
|
||||
|
||||
public PlaylistEntity(final String name, final String thumbnailUrl,
|
||||
final boolean isThumbnailSet) {
|
||||
this.name = name;
|
||||
this.thumbnailUrl = thumbnailUrl;
|
||||
this.isThumbnailSet = isThumbnailSet;
|
||||
}
|
||||
|
||||
public long getUid() {
|
||||
|
|
@ -55,4 +60,13 @@ public class PlaylistEntity {
|
|||
public void setThumbnailUrl(final String thumbnailUrl) {
|
||||
this.thumbnailUrl = thumbnailUrl;
|
||||
}
|
||||
|
||||
public boolean getIsThumbnailSet() {
|
||||
return isThumbnailSet;
|
||||
}
|
||||
|
||||
public void setIsThumbnailSet(final boolean isThumbnailSet) {
|
||||
this.isThumbnailSet = isThumbnailSet;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue