com.google.code.facebookapi
Class AttachmentMediaVideo
java.lang.Object
com.google.code.facebookapi.AttachmentMedia
com.google.code.facebookapi.AttachmentMediaVideo
- All Implemented Interfaces:
- ToJsonObject
public class AttachmentMediaVideo
- extends AttachmentMedia
A simple data structure for video media type used by Attachment.
- See Also:
http://wiki.developers.facebook.com/index.php/Attachment_(Streams)}
|
Constructor Summary |
AttachmentMediaVideo()
|
AttachmentMediaVideo(java.lang.String videoSrc,
java.lang.String previewImg,
java.lang.String title,
java.lang.String type,
java.lang.String link)
Construct a video attachment. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentMediaVideo
public AttachmentMediaVideo()
AttachmentMediaVideo
public AttachmentMediaVideo(java.lang.String videoSrc,
java.lang.String previewImg,
java.lang.String title,
java.lang.String type,
java.lang.String link)
- Construct a video attachment.
- Parameters:
videoSrc - URL of the video to be rendered. (required)previewImg - URL of an image that should be displayed in place of the video until the user clicks to play. (required)title - Video title. (optional)type - Video type, default is "application/x-shockwave-flash". (optional)link - Video link, default is value of videoSrc. (optional)
toJson
public org.json.JSONObject toJson()
- Specified by:
toJson in interface ToJsonObject- Overrides:
toJson in class AttachmentMedia
- Returns:
- a JSON representation of attachment.
getVideoSrc
public java.lang.String getVideoSrc()
setVideoSrc
public void setVideoSrc(java.lang.String videoSrc)
getPreviewImg
public java.lang.String getPreviewImg()
setPreviewImg
public void setPreviewImg(java.lang.String previewImg)
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String title)
getType
public java.lang.String getType()
setType
public void setType(java.lang.String type)
getLink
public java.lang.String getLink()
setLink
public void setLink(java.lang.String link)
Copyright © 2009. All Rights Reserved.