mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 14:57:12 +00:00
added ImageDTO and VideoDTO collections to EventDTO
This commit is contained in:
1 parent
4a78e194a2
commit
60b84ee007
3 files changed
+60
-17
No files matched your search
@@ -11,8 +11,9 @@ public class ImageDTO extends AbstractMediaDTO {
|
||||
protected ImageDTO() {
|
||||
}
|
||||
|
||||
private int widthInPx;
|
||||
private int heightInPx;
|
||||
/** can be null if not known */
|
||||
private Integer widthInPx;
|
||||
private Integer heightInPx;
|
||||
|
||||
public ImageDTO(String imageRef, ImageSize size, Date createdAtDate) {
|
||||
super(imageRef, MimeType.image, createdAtDate);
|
||||
@@ -20,17 +21,17 @@ public class ImageDTO extends AbstractMediaDTO {
|
||||
this.heightInPx = size.getHeight();
|
||||
}
|
||||
|
||||
public ImageDTO(String imageRef, int heightInPx, int widthInPx, Date createdAtDate) {
|
||||
public ImageDTO(String imageRef, Integer widthInPx, Integer heightInPx, Date createdAtDate) {
|
||||
super(imageRef, MimeType.image, createdAtDate);
|
||||
this.widthInPx = widthInPx;
|
||||
this.heightInPx = heightInPx;
|
||||
}
|
||||
|
||||
public int getWidthInPx() {
|
||||
public Integer getWidthInPx() {
|
||||
return widthInPx;
|
||||
}
|
||||
|
||||
public int getHeightInPx() {
|
||||
public Integer getHeightInPx() {
|
||||
return heightInPx;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user