mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 06:47:15 +00:00
added some common interfaces for media data
This commit is contained in:
1 parent
41e44b42dd
commit
8ff9797d29
3 files changed
+37
No files matched your search
@@ -0,0 +1,7 @@
|
||||
package com.sap.sse.common.media;
|
||||
|
||||
public interface ImageMetadata extends MediaMetadata {
|
||||
public int getWidthInPx();
|
||||
|
||||
public int getHeightInPx();
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.sap.sse.common.media;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* A common media interface for all kinds of media like images or videos.
|
||||
*/
|
||||
public interface MediaMetadata {
|
||||
public MimeType getMimeType();
|
||||
|
||||
public URL getURL();
|
||||
|
||||
public String getTitle();
|
||||
|
||||
public Iterable<String> getTags();
|
||||
|
||||
public String getSubtitle();
|
||||
|
||||
public Date getCreatedAtDate();
|
||||
|
||||
public String getCopyright();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.sap.sse.common.media;
|
||||
|
||||
public interface VideoMetadata extends MediaMetadata {
|
||||
public int getLengthInSeconds();
|
||||
|
||||
public String getThumbnailRef();
|
||||
}
|
||||
Reference in new issue
Block a user