public static class SharePhotoContent.Builder extends ShareContent.Builder<SharePhotoContent,SharePhotoContent.Builder>
SharePhotoContent
interface.Constructor and Description |
---|
SharePhotoContent.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, setPeopleIds, setPlaceId, setRef, setShareHashtag
public SharePhotoContent.Builder addPhoto(@Nullable SharePhoto photo)
photo
- SharePhoto
to add.public SharePhotoContent.Builder addPhotos(@Nullable java.util.List<SharePhoto> photos)
photos
- List
of SharePhoto
s
to add.public SharePhotoContent build()
ShareBuilder
public SharePhotoContent.Builder readFrom(SharePhotoContent model)
ShareModelBuilder
readFrom
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 SharePhoto
s to add.