Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
able to view video media in gallery media app
- Loading branch information
svuillet
committed
Mar 3, 2015
1 parent
f0fdf63
commit ca18f75
Showing
30 changed files
with
729 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 26 additions & 13 deletions
39
...c/main/java/com/silverpeas/mobile/client/apps/media/events/app/MediaPreviewLoadEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,38 @@ | ||
package com.silverpeas.mobile.client.apps.media.events.app; | ||
|
||
import com.silverpeas.mobile.shared.dto.media.MediaDTO; | ||
|
||
public class MediaPreviewLoadEvent extends AbstractMediaAppEvent { | ||
|
||
private String instanceId, mediaId; | ||
private String instanceId, mediaId, contentType; | ||
private MediaDTO media; | ||
|
||
public MediaPreviewLoadEvent(String instanceId, String mediaId) { | ||
super(); | ||
this.mediaId = mediaId; | ||
this.instanceId = instanceId; | ||
} | ||
public MediaPreviewLoadEvent(String instanceId, String contentType, String mediaId, MediaDTO media) { | ||
super(); | ||
this.mediaId = mediaId; | ||
this.contentType = contentType; | ||
this.instanceId = instanceId; | ||
this.media = media; | ||
} | ||
|
||
@Override | ||
protected void dispatch(MediaAppEventHandler handler) { | ||
handler.loadMediaPreview(this); | ||
} | ||
@Override | ||
protected void dispatch(MediaAppEventHandler handler) { | ||
handler.loadMediaPreview(this); | ||
} | ||
|
||
public String getInstanceId() { | ||
return instanceId; | ||
} | ||
public String getInstanceId() { | ||
return instanceId; | ||
} | ||
|
||
public String getMediaId() { | ||
return mediaId; | ||
} | ||
|
||
public MediaDTO getMedia() { | ||
return media; | ||
} | ||
|
||
public String getContentType() { | ||
return contentType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.