Package com.restfb.types.send.media
Class MediaTemplateUrlElement
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.send.media.MediaTemplateUrlElement
-
- All Implemented Interfaces:
MediaAttachment.MediaTemplateElement
,Serializable
public class MediaTemplateUrlElement extends AbstractFacebookType implements MediaAttachment.MediaTemplateElement
Represents the media template element that is used with the url as defined here Allowed urls are:- https://business.facebook.com/
/videos/ - https://www.facebook.com/
/videos/ / - https://business.facebook.com/
/photos/ - https://www.facebook.com/photo.php?fbid=
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MediaTemplateUrlElement(String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addButton(AbstractButton button)
List<AbstractButton>
getButtons()
String
getMediaType()
String
getUrl()
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
MediaTemplateUrlElement
public MediaTemplateUrlElement(String url)
-
-
Method Detail
-
addButton
public void addButton(AbstractButton button)
- Specified by:
addButton
in interfaceMediaAttachment.MediaTemplateElement
-
getMediaType
public String getMediaType()
-
getButtons
public List<AbstractButton> getButtons()
-
-