public class ImageAttachment extends Post
Post.Builder, Post.CommentStatus, Post.Sort, Post.Status, Post.Typeauthor, authorId, children, commentCount, content, excerpt, guid, id, metadata, mimeType, modifiedTimestamp, parentId, publishTimestamp, slug, status, taxonomyTerms, title, type| Constructor and Description |
|---|
ImageAttachment(Post post)
Creates an image attachment from a post.
|
ImageAttachment(Post parent,
long id,
java.lang.String path,
java.lang.String slug,
java.lang.String caption,
java.lang.String mimeType)
Creates an image attachment with assigned id.
|
ImageAttachment(Post parent,
java.lang.String path,
java.lang.String slug,
java.lang.String caption,
java.lang.String mimeType)
Creates an image attachment with unassigned id.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
path()
Gets the image path.
|
categories, modifiedNow, newBuilder, newBuilder, tags, terms, withAuthor, withChildren, withContent, withId, withMetadata, withParent, withTaxonomyTermspublic ImageAttachment(Post post)
post - The post.public ImageAttachment(Post parent, java.lang.String path, java.lang.String slug, java.lang.String caption, java.lang.String mimeType)
parent - The parent post.path - The image path.slug - The image slug.mimeType - The associated mime type.public ImageAttachment(Post parent, long id, java.lang.String path, java.lang.String slug, java.lang.String caption, java.lang.String mimeType)
parent - The parent post.id - The id.path - The image path.slug - The image slug.caption - The image caption.mimeType - The associated mime type.