2018-01-15 21:30:52 +01:00
|
|
|
package org.schabi.newpipe.database.playlist;
|
|
|
|
|
|
|
|
import android.arch.persistence.room.ColumnInfo;
|
|
|
|
|
2018-01-28 07:14:38 +01:00
|
|
|
import org.schabi.newpipe.database.LocalItem;
|
2018-01-15 21:30:52 +01:00
|
|
|
|
|
|
|
import static org.schabi.newpipe.database.playlist.model.PlaylistEntity.PLAYLIST_ID;
|
|
|
|
import static org.schabi.newpipe.database.playlist.model.PlaylistEntity.PLAYLIST_NAME;
|
|
|
|
import static org.schabi.newpipe.database.playlist.model.PlaylistEntity.PLAYLIST_THUMBNAIL_URL;
|
|
|
|
|
2018-01-28 07:14:38 +01:00
|
|
|
public class PlaylistMetadataEntry implements LocalItem {
|
2018-01-15 21:30:52 +01:00
|
|
|
final public static String PLAYLIST_STREAM_COUNT = "streamCount";
|
|
|
|
|
|
|
|
@ColumnInfo(name = PLAYLIST_ID)
|
|
|
|
final public long uid;
|
|
|
|
@ColumnInfo(name = PLAYLIST_NAME)
|
|
|
|
final public String name;
|
|
|
|
@ColumnInfo(name = PLAYLIST_THUMBNAIL_URL)
|
|
|
|
final public String thumbnailUrl;
|
|
|
|
@ColumnInfo(name = PLAYLIST_STREAM_COUNT)
|
|
|
|
final public long streamCount;
|
|
|
|
|
|
|
|
public PlaylistMetadataEntry(long uid, String name, String thumbnailUrl, long streamCount) {
|
|
|
|
this.uid = uid;
|
|
|
|
this.name = name;
|
|
|
|
this.thumbnailUrl = thumbnailUrl;
|
|
|
|
this.streamCount = streamCount;
|
|
|
|
}
|
|
|
|
|
2018-01-28 07:14:38 +01:00
|
|
|
@Override
|
|
|
|
public LocalItemType getLocalItemType() {
|
|
|
|
return LocalItemType.PLAYLIST_ITEM;
|
|
|
|
}
|
2018-01-15 21:30:52 +01:00
|
|
|
}
|