From c7d67f443bdfe842c2e356d4edbe345338e3e08d Mon Sep 17 00:00:00 2001 From: geronimo Date: Thu, 2 Aug 2012 09:30:50 +0200 Subject: patched client to support the new media types and display extended items --- cmpcj/src/de/schwarzrot/cmpc/domain/Media.java | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'cmpcj/src/de/schwarzrot/cmpc/domain') 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; } -- cgit v1.2.3