public class Gmail.Users.Drafts
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Gmail.Users.Drafts.Create |
class |
Gmail.Users.Drafts.Delete |
class |
Gmail.Users.Drafts.Get |
class |
Gmail.Users.Drafts.List |
class |
Gmail.Users.Drafts.Send |
class |
Gmail.Users.Drafts.Update |
Constructor and Description |
---|
Drafts() |
Modifier and Type | Method and Description |
---|---|
Gmail.Users.Drafts.Create |
create(java.lang.String userId,
Draft content)
Creates a new draft with the DRAFT label.
|
Gmail.Users.Drafts.Create |
create(java.lang.String userId,
Draft content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Creates a new draft with the DRAFT label.
|
Gmail.Users.Drafts.Delete |
delete(java.lang.String userId,
java.lang.String id)
Immediately and permanently deletes the specified draft.
|
Gmail.Users.Drafts.Get |
get(java.lang.String userId,
java.lang.String id)
Gets the specified draft.
|
Gmail.Users.Drafts.List |
list(java.lang.String userId)
Lists the drafts in the user's mailbox.
|
Gmail.Users.Drafts.Send |
send(java.lang.String userId,
Draft content)
Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.
|
Gmail.Users.Drafts.Send |
send(java.lang.String userId,
Draft content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.
|
Gmail.Users.Drafts.Update |
update(java.lang.String userId,
java.lang.String id,
Draft content)
Replaces a draft's content.
|
Gmail.Users.Drafts.Update |
update(java.lang.String userId,
java.lang.String id,
Draft content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Replaces a draft's content.
|
public Gmail.Users.Drafts.Create create(java.lang.String userId, Draft content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.userId
- The user's email address. The special value me can be used to indicate the authenticated user.
[default: me]content
- the Draft
java.io.IOException
public Gmail.Users.Drafts.Create create(java.lang.String userId, Draft content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
userId
- The user's email address. The special value me can be used to indicate the authenticated user.
[default: me]content
- the Draft
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.java.io.IOException
- if the initialization of the request failspublic Gmail.Users.Drafts.Delete delete(java.lang.String userId, java.lang.String id) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.userId
- The user's email address. The special value me can be used to indicate the authenticated user.
[default: me]id
- The ID of the draft to delete.java.io.IOException
public Gmail.Users.Drafts.Get get(java.lang.String userId, java.lang.String id) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.userId
- The user's email address. The special value me can be used to indicate the authenticated user.
[default: me]id
- The ID of the draft to retrieve.java.io.IOException
public Gmail.Users.Drafts.List list(java.lang.String userId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.userId
- The user's email address. The special value me can be used to indicate the authenticated user.
[default: me]java.io.IOException
public Gmail.Users.Drafts.Send send(java.lang.String userId, Draft content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.userId
- The user's email address. The special value me can be used to indicate the authenticated user.
[default: me]content
- the Draft
java.io.IOException
public Gmail.Users.Drafts.Send send(java.lang.String userId, Draft content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
userId
- The user's email address. The special value me can be used to indicate the authenticated user.
[default: me]content
- the Draft
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.java.io.IOException
- if the initialization of the request failspublic Gmail.Users.Drafts.Update update(java.lang.String userId, java.lang.String id, Draft content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.userId
- The user's email address. The special value me can be used to indicate the authenticated user.
[default: me]id
- The ID of the draft to update.content
- the Draft
java.io.IOException
public Gmail.Users.Drafts.Update update(java.lang.String userId, java.lang.String id, Draft content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
userId
- The user's email address. The special value me can be used to indicate the authenticated user.
[default: me]@param id The ID of the draft to update.content
- the Draft
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.java.io.IOException
- if the initialization of the request fails