Package com.restfb.types
Class FacebookReelAttachment
- java.lang.Object
-
- com.restfb.BinaryAttachment
-
- com.restfb.types.FacebookReelAttachment
-
public class FacebookReelAttachment extends BinaryAttachment
Attachment object for uploading a Reel to Facebook.use
withByteContent
for sending a binary attachment andwithUrl
if the URL is given instead
-
-
Field Summary
-
Fields inherited from class com.restfb.BinaryAttachment
data
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FacebookReelAttachment(byte[] byteData)
protected
FacebookReelAttachment(String reelUrl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFileSizeInBytes()
String
getReelUrl()
boolean
isBinary()
boolean
isFacebookReel()
static FacebookReelAttachment
withByteContent(byte[] reelData)
static FacebookReelAttachment
withUrl(String reelUrl)
-
Methods inherited from class com.restfb.BinaryAttachment
equals, getContentType, getData, getFieldName, getFilename, hasBinaryData, hashCode, toString, with, with, with, with, with, with, with, with
-
-
-
-
Constructor Detail
-
FacebookReelAttachment
protected FacebookReelAttachment(byte[] byteData)
-
FacebookReelAttachment
protected FacebookReelAttachment(String reelUrl)
-
-
Method Detail
-
withByteContent
public static FacebookReelAttachment withByteContent(byte[] reelData)
-
withUrl
public static FacebookReelAttachment withUrl(String reelUrl)
-
isFacebookReel
public boolean isFacebookReel()
- Overrides:
isFacebookReel
in classBinaryAttachment
-
isBinary
public boolean isBinary()
-
getFileSizeInBytes
public int getFileSizeInBytes()
-
getReelUrl
public String getReelUrl()
-
-