Package com.restfb.types.send.media
Class MediaTemplateAttachmentElement
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.send.media.MediaTemplateAttachmentElement
-
- All Implemented Interfaces:
MediaAttachment.MediaTemplateElement
,Serializable
public class MediaTemplateAttachmentElement extends AbstractFacebookType implements MediaAttachment.MediaTemplateElement
Represents the media template element that is used with the attachment id as defined here- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MediaTemplateAttachmentElement(MediaAttachment.MediaType mediaType, String attachmentId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addButton(AbstractButton button)
String
getAttachmentId()
List<AbstractButton>
getButtons()
String
getMediaType()
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
MediaTemplateAttachmentElement
public MediaTemplateAttachmentElement(MediaAttachment.MediaType mediaType, String attachmentId)
-
-
Method Detail
-
addButton
public void addButton(AbstractButton button)
- Specified by:
addButton
in interfaceMediaAttachment.MediaTemplateElement
-
getMediaType
public String getMediaType()
-
getAttachmentId
public String getAttachmentId()
-
getButtons
public List<AbstractButton> getButtons()
-
-