summaryrefslogtreecommitdiff
path: root/cmpcj/src/de/schwarzrot/cmpc/domain
diff options
context:
space:
mode:
Diffstat (limited to 'cmpcj/src/de/schwarzrot/cmpc/domain')
-rw-r--r--cmpcj/src/de/schwarzrot/cmpc/domain/Media.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/cmpcj/src/de/schwarzrot/cmpc/domain/Media.java b/cmpcj/src/de/schwarzrot/cmpc/domain/Media.java
index a254192..a7e575f 100644
--- a/cmpcj/src/de/schwarzrot/cmpc/domain/Media.java
+++ b/cmpcj/src/de/schwarzrot/cmpc/domain/Media.java
@@ -36,6 +36,16 @@ public class Media {
};
+ public String getFormat() {
+ return format;
+ }
+
+
+ public int getHeight() {
+ return height;
+ }
+
+
public String getName() {
return name;
}
@@ -56,6 +66,26 @@ public class Media {
}
+ public int getWidth() {
+ return width;
+ }
+
+
+ public boolean isHD() {
+ return height > 576;
+ }
+
+
+ public void setFormat(String format) {
+ this.format = format;
+ }
+
+
+ public void setHeight(int height) {
+ this.height = height;
+ }
+
+
public void setName(String name) {
this.name = name;
}
@@ -96,8 +126,16 @@ public class Media {
this.type = SupportedMediaType.Invalid;
}
+
+ public void setWidth(int width) {
+ this.width = width;
+ }
+
private String name;
private SupportedMediaType type;
+ private String format;
private String path;
private String search;
+ private int width;
+ private int height;
}