1 package be.bastard.mtracker;
2
3 /***
4 * Created by IntelliJ IDEA.
5 * User: rls
6 * Date: 6-feb-2006
7 * Time: 15:36:06
8 * To change this template use File | Settings | File Templates.
9 */
10 public class Dvd extends AbstractMediaItem {
11 public enum ContentType {
12 MOVIE, MP3, DATA, MIXED
13 }
14
15 protected String title;
16 protected ContentType contentType;
17
18 public Dvd(String title, ContentType content) {
19 this.title = title;
20 this.contentType = content;
21 }
22
23 public boolean equals(MediaItem item) {
24 if (item instanceof Dvd) {
25 return super.equals(item);
26 }
27 return false;
28 }
29
30 public String getTitle() {
31 return title;
32 }
33
34 public ContentType getContentType() {
35 return contentType;
36 }
37 }