public class Mirror.Timeline.Attachments extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Mirror.Timeline.Attachments.Delete |
class |
Mirror.Timeline.Attachments.Get |
class |
Mirror.Timeline.Attachments.Insert |
class |
Mirror.Timeline.Attachments.List |
| Constructor and Description |
|---|
Mirror.Timeline.Attachments() |
| Modifier and Type | Method and Description |
|---|---|
Mirror.Timeline.Attachments.Delete |
delete(String itemId,
String attachmentId)
Deletes an attachment from a timeline item.
|
Mirror.Timeline.Attachments.Get |
get(String itemId,
String attachmentId)
Retrieves an attachment on a timeline item by item ID and attachment ID.
|
Mirror.Timeline.Attachments.Insert |
insert(String itemId)
Adds a new attachment to a timeline item.
|
Mirror.Timeline.Attachments.Insert |
insert(String itemId,
AbstractInputStreamContent mediaContent)
Adds a new attachment to a timeline item.
|
Mirror.Timeline.Attachments.List |
list(String itemId)
Returns a list of attachments for a timeline item.
|
public Mirror.Timeline.Attachments.Delete delete(String itemId, String attachmentId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.itemId - The ID of the timeline item the attachment belongs to.attachmentId - The ID of the attachment.IOExceptionpublic Mirror.Timeline.Attachments.Get get(String itemId, String attachmentId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.itemId - The ID of the timeline item the attachment belongs to.attachmentId - The ID of the attachment.IOExceptionpublic Mirror.Timeline.Attachments.Insert insert(String itemId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.itemId - The ID of the timeline item the attachment belongs to.IOExceptionpublic Mirror.Timeline.Attachments.Insert insert(String itemId, AbstractInputStreamContent mediaContent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
This method should be used for uploading media content.
itemId - The ID of the timeline item the attachment belongs to.mediaContent - The media HTTP content or null if none.IOException - if the initialization of the request failspublic Mirror.Timeline.Attachments.List list(String itemId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.itemId - The ID of the timeline item whose attachments should be listed.IOException