aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MusicalElement.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/MusicalElement.java b/MusicalElement.java
index c409ce7..b5f6446 100644
--- a/MusicalElement.java
+++ b/MusicalElement.java
@@ -1,12 +1,11 @@
-interface Item {
- int getId();
- String getTitle();
- int getDuration();
- }
+/** The MusicalElement contains the base of songs and audibooks.
+ * It is the abstract class they will take.
+ * We use the classical get and set here.*/
-class MusicalElement implements Item {
+class MusicalElement {
private int id, duration;
private String title, content;
+
public MusicalElement(int id, String title, int duration, String content) {
this.id=id;
this.title=title;
@@ -17,6 +16,12 @@ class MusicalElement implements Item {
public int getId(){return id;}
public String getTitle(){return title;}
public int getDuration(){return duration;}
+ public String getContent(){return content;}
+
+ public void setId(){this.id=id;}
+ public void setTitle(){this.title=title;}
+ public void setDuration(){this.duration=duration;}
+ public void setContent(){this.content=content;}
/tr> 2020-12-24Playlist : sort by name and delete optionClyhtsuriva6-40/+128 2020-12-24Finishing album and starting playlistsClyhtsuriva3-16/+102 2020-12-23Implementing AlbumClyhtsuriva3-17/+155 2020-12-22SimplifyingClyhtsuriva2-129/+81 2020-12-19Adding AudioBooksClyhtsuriva7-48/+225 2020-12-11(De)Serialization of the songsClyhtsuriva2-42/+63 2020-12-11Getting serialization working with a songClyhtsuriva3-7/+36 2020-12-11adding Serialization interface and methodsClyhtsuriva6-59/+63 2020-12-07Big updateMasfehico6-16/+99 2020-12-07cleaning and adding stuff in playlistMasfehico3-2/+20 2020-12-07Updating song and audiobook accordingly to the last commitMasfehico2-8/+8 2020-12-07Adding the enum classesMasfehico3-0/+9 2020-12-07Updating song, audiobook and musical elements's sets and getsMasfehico3-5/+23 2020-12-07Finishing MusicalElement.javaMasfehico1-6/+11 2020-11-23Cleaning upMasfehico2-30/+0 2020-11-23Deleting the CSVSMasfehico5-3669/+0 2020-11-23Minor testing changesMasfehico7-43/+63 2020-11-23Musical elements updated and jMusicHub basic creationMasfehico2-0/+0 2020-11-23Musical elements updated and jMusicHub basic creationMasfehico4-3/+74 2020-11-21README.md updatedMasfehico1-3/+1 2020-11-19Started Song and MusicalElementMasfehico5-0/+190 2020-11-18Added CSVsMasfehico9-102/+3756 2020-11-18Firs filesMasfehico8-0/+103 2020-11-17LICENSE updatedMasfehico1-68/+81