public static class SharePhotoContent.Builder extends ShareContent.Builder<SharePhotoContent,SharePhotoContent.Builder>
SharePhotoContent interface.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SharePhotoContent.Builder |
addPhoto(SharePhoto photo)
Adds a photo to the content.
|
SharePhotoContent.Builder |
addPhotos(java.util.List<SharePhoto> photos)
Adds multiple photos to the content.
|
SharePhotoContent |
build()
Builds the object.
|
SharePhotoContent.Builder |
readFrom(SharePhotoContent model)
Reads the values from a ShareModel into the builder.
|
SharePhotoContent.Builder |
setPhotos(java.util.List<SharePhoto> photos)
Replaces the photos for the builder.
|
setContentUrl, setPageId, setPeopleIds, setPlaceId, setRef, setShareHashtagpublic SharePhotoContent.Builder addPhoto(@Nullable SharePhoto photo)
photo - SharePhoto to add.public SharePhotoContent.Builder addPhotos(@Nullable java.util.List<SharePhoto> photos)
photos - List of SharePhotos to add.public SharePhotoContent build()
ShareBuilderpublic SharePhotoContent.Builder readFrom(SharePhotoContent model)
ShareModelBuilderreadFrom in interface ShareModelBuilder<SharePhotoContent,SharePhotoContent.Builder>readFrom in class ShareContent.Builder<SharePhotoContent,SharePhotoContent.Builder>model - The source ShareModelpublic SharePhotoContent.Builder setPhotos(@Nullable java.util.List<SharePhoto> photos)
photos - List of SharePhotos to add.