blob: 9f6ba5670ef3a5fbb8a388b9d8f05acf22137429 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
public class AudioBook extends MusicalElement {
private static final long serialVersionUID = -7145972304319088676L;
private String author, language, category;
public AudioBook(String title, int duration, String content, String author, Language language, Category category) {
super(title, duration, content);
this.author=author;
this.language=language.name();
this.category=category.name();
}
public String getAuthor(){return author;}
public String getLanguage(){return language;}
public String getCategory(){return category;}
public void setArtist(String author){this.author=author;}
public void setGenre(Language language){this.language=language.name();}
public void setCategory(Category category){this.category=category.name();}
public String toString() {
return "Id : "+getId()+"\nTitle : "+getTitle()+"\nDuration : "+getDuration()+"\nContent : "+getContent()+"\nAuthor : "+getAuthor()+"\nLanguage : "+getLanguage()+"\nCategory : "+getCategory();
}
}
|