com.google.code.facebookapi
Class AttachmentMediaFlash
java.lang.Object
com.google.code.facebookapi.AttachmentMedia
com.google.code.facebookapi.AttachmentMediaFlash
- All Implemented Interfaces:
- ToJsonObject, java.io.Serializable
public class AttachmentMediaFlash
- extends AttachmentMedia
A simple data structure for flash media type used by Attachment.
- See Also:
http://wiki.developers.facebook.com/index.php/Attachment_(Streams)},
Serialized Form
|
Constructor Summary |
AttachmentMediaFlash()
|
AttachmentMediaFlash(java.lang.String swfsrc,
java.lang.String imgsrc,
java.lang.Integer width,
java.lang.Integer height,
java.lang.Integer expandedWidth,
java.lang.Integer expandedHeight)
Construct a Flash attachment. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentMediaFlash
public AttachmentMediaFlash()
AttachmentMediaFlash
public AttachmentMediaFlash(java.lang.String swfsrc,
java.lang.String imgsrc,
java.lang.Integer width,
java.lang.Integer height,
java.lang.Integer expandedWidth,
java.lang.Integer expandedHeight)
- Construct a Flash attachment.
- Parameters:
swfsrc - URL of the Flash object to be rendered.imgsrc - URL of an image that should be displayed in place of the Flash object until the user clicks to prompt the Flash object to play.width - Width must be one of three numbers: 100, 110, or 130. (optional)height - Height must be between 30 and 100. (optional)expandedWidth - On user click the flash is resized to this width, must be between 30 and 320. (optional)expandedHeight - On user click the flash is resized to this height, must be between 30 and 260. (optional)
toJson
public org.json.JSONObject toJson()
- Specified by:
toJson in interface ToJsonObject- Overrides:
toJson in class AttachmentMedia
- Returns:
- a JSON representation of attachment.
getSwfsrc
public java.lang.String getSwfsrc()
setSwfsrc
public void setSwfsrc(java.lang.String swfsrc)
getImgsrc
public java.lang.String getImgsrc()
setImgsrc
public void setImgsrc(java.lang.String imgsrc)
getWidth
public java.lang.Integer getWidth()
setWidth
public void setWidth(java.lang.Integer width)
getHeight
public java.lang.Integer getHeight()
setHeight
public void setHeight(java.lang.Integer height)
getExpandedWidth
public java.lang.Integer getExpandedWidth()
setExpandedWidth
public void setExpandedWidth(java.lang.Integer expandedWidth)
getExpandedHeight
public java.lang.Integer getExpandedHeight()
setExpandedHeight
public void setExpandedHeight(java.lang.Integer expandedHeight)
Copyright © 2010. All Rights Reserved.