File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/database/playlist Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .schabi .newpipe .database .playlist ;
22
3+ import androidx .annotation .Nullable ;
4+
35import org .schabi .newpipe .database .LocalItem ;
46
57public interface PlaylistLocalItem extends LocalItem {
@@ -10,4 +12,7 @@ public interface PlaylistLocalItem extends LocalItem {
1012 long getUid ();
1113
1214 void setDisplayIndex (long displayIndex );
15+
16+ @ Nullable
17+ String getThumbnailUrl ();
1318}
Original file line number Diff line number Diff line change 99import static org .schabi .newpipe .database .playlist .model .PlaylistEntity .PLAYLIST_THUMBNAIL_STREAM_ID ;
1010import static org .schabi .newpipe .database .playlist .model .PlaylistEntity .PLAYLIST_THUMBNAIL_URL ;
1111
12+ import androidx .annotation .Nullable ;
13+
1214public class PlaylistMetadataEntry implements PlaylistLocalItem {
1315 public static final String PLAYLIST_STREAM_COUNT = "streamCount" ;
1416
@@ -71,4 +73,10 @@ public long getUid() {
7173 public void setDisplayIndex (final long displayIndex ) {
7274 this .displayIndex = displayIndex ;
7375 }
76+
77+ @ Nullable
78+ @ Override
79+ public String getThumbnailUrl () {
80+ return thumbnailUrl ;
81+ }
7482}
Original file line number Diff line number Diff line change 22
33import android .text .TextUtils ;
44
5+ import androidx .annotation .Nullable ;
56import androidx .room .ColumnInfo ;
67import androidx .room .Entity ;
78import androidx .room .Ignore ;
@@ -134,6 +135,8 @@ public void setName(final String name) {
134135 this .name = name ;
135136 }
136137
138+ @ Nullable
139+ @ Override
137140 public String getThumbnailUrl () {
138141 return thumbnailUrl ;
139142 }
You can’t perform that action at this time.
0 commit comments