package com.deniscerri.ytdlnis.database; import android.os.Parcel; import android.os.Parcelable; public class Video implements Parcelable { private int id; private String videoId; private String title; private String author; private String duration; private String thumb; private String url; private String downloadedType; private int downloadedAudio; private int downloadedVideo; private String downloadedTime; private int isPlaylistItem; private String downloadPath; private String website; // RESULTS OBJECT public Video(String videoId, String url, String title, String author, String duration, String thumb, int downloadedAudio, int downloadedVideo, int isPlaylistItem, String website) { this.videoId = videoId; this.url = url; this.title = title; this.author = author; this.duration = duration; this.thumb = thumb; this.downloadedVideo = downloadedVideo; this.downloadedAudio = downloadedAudio; this.isPlaylistItem = isPlaylistItem; this.website = website; } //HISTORY OBJECT public Video(int id, String url, String title, String author, String duration, String thumb, String downloadedType, String downloadedTime, String downloadPath, String website) { this.id = id; this.url = url; this.title = title; this.author = author; this.duration = duration; this.thumb = thumb; this.downloadedType = downloadedType; this.downloadedTime = downloadedTime; this.downloadPath = downloadPath; this.website = website; } protected Video(Parcel in) { id = in.readInt(); videoId = in.readString(); title = in.readString(); author = in.readString(); duration = in.readString(); thumb = in.readString(); url = in.readString(); downloadedType = in.readString(); downloadedAudio = in.readInt(); downloadedVideo = in.readInt(); downloadedTime = in.readString(); isPlaylistItem = in.readInt(); downloadPath = in.readString(); website = in.readString(); } public static final Creator