mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Rewriting classes in kotlin
This commit is contained in:
parent
74ec37cb5e
commit
103cd308de
43 changed files with 818 additions and 2325 deletions
|
|
@ -60,10 +60,6 @@ public class MappingUtil {
|
|||
return new Album(albumWithSongsID3);
|
||||
}
|
||||
|
||||
public static Album mapAlbum(AlbumInfo albumInfo) {
|
||||
return new Album(albumInfo);
|
||||
}
|
||||
|
||||
public static ArrayList<Artist> mapArtist(List<ArtistID3> artistID3List) {
|
||||
ArrayList<Artist> artists = new ArrayList();
|
||||
|
||||
|
|
@ -173,7 +169,7 @@ public class MappingUtil {
|
|||
ArrayList<Playlist> playlists = new ArrayList();
|
||||
|
||||
for (Download download : downloads) {
|
||||
playlists.add(new Playlist(download.getPlaylistId(), download.getPlaylistName()));
|
||||
playlists.add(new Playlist(download.getPlaylistId(), download.getPlaylistName(), null, 0, 0, null));
|
||||
}
|
||||
|
||||
return playlists;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue