public class Gmail.Users.Threads
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Gmail.Users.Threads.Delete |
class |
Gmail.Users.Threads.Get |
class |
Gmail.Users.Threads.List |
class |
Gmail.Users.Threads.Modify |
class |
Gmail.Users.Threads.Trash |
class |
Gmail.Users.Threads.Untrash |
Constructor and Description |
---|
Threads() |
Modifier and Type | Method and Description |
---|---|
Gmail.Users.Threads.Delete |
delete(java.lang.String userId,
java.lang.String id)
Immediately and permanently deletes the specified thread.
|
Gmail.Users.Threads.Get |
get(java.lang.String userId,
java.lang.String id)
Gets the specified thread.
|
Gmail.Users.Threads.List |
list(java.lang.String userId)
Lists the threads in the user's mailbox.
|
Gmail.Users.Threads.Modify |
modify(java.lang.String userId,
java.lang.String id,
ModifyThreadRequest content)
Modifies the labels applied to the thread.
|
Gmail.Users.Threads.Trash |
trash(java.lang.String userId,
java.lang.String id)
Moves the specified thread to the trash.
|
Gmail.Users.Threads.Untrash |
untrash(java.lang.String userId,
java.lang.String id)
Removes the specified thread from the trash.
|
public Gmail.Users.Threads.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
- ID of the Thread to delete.java.io.IOException
public Gmail.Users.Threads.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 thread to retrieve.java.io.IOException
public Gmail.Users.Threads.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.Threads.Modify modify(java.lang.String userId, java.lang.String id, ModifyThreadRequest 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 thread to modify.content
- the ModifyThreadRequest
java.io.IOException
public Gmail.Users.Threads.Trash trash(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 thread to Trash.java.io.IOException
public Gmail.Users.Threads.Untrash untrash(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 thread to remove from Trash.java.io.IOException