/** * This constructor takes in two arguments. The first is the local file path. The second is a * SoundLibraryEntry. All of the members of the entry are used except for url, which is not * applicable and discarded. * * @param given_path * @param entry */ public SoundLibraryUpload(String given_path, SoundLibraryEntry entry) { file_path = given_path; title = entry.getTitle(); author = entry.getAuthor(); genre = entry.getGenre(); tags = entry.getTags(); }
/** * This method allows the user to set all the data members of the update except for file_path. * * @param entry */ public void setEntry(SoundLibraryEntry entry) { title = entry.getTitle(); author = entry.getAuthor(); genre = entry.getGenre(); tags = entry.getTags(); }