public class Gmail.Users.Threads extends 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(String userId,
String id)
Immediately and permanently deletes the specified thread.
|
Gmail.Users.Threads.Get |
get(String userId,
String id)
Gets the specified thread.
|
Gmail.Users.Threads.List |
list(String userId)
Lists the threads in the user's mailbox.
|
Gmail.Users.Threads.Modify |
modify(String userId,
String id,
ModifyThreadRequest content)
Modifies the labels applied to the thread.
|
Gmail.Users.Threads.Trash |
trash(String userId,
String id)
Moves the specified thread to the trash.
|
Gmail.Users.Threads.Untrash |
untrash(String userId,
String id)
Removes the specified thread from the trash.
|
public Gmail.Users.Threads.Delete delete(String userId, String id) throws 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.IOException
public Gmail.Users.Threads.Get get(String userId, String id) throws 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.IOException
public Gmail.Users.Threads.List list(String userId) throws 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]IOException
public Gmail.Users.Threads.Modify modify(String userId, String id, ModifyThreadRequest content) throws 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
IOException
public Gmail.Users.Threads.Trash trash(String userId, String id) throws 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.IOException
public Gmail.Users.Threads.Untrash untrash(String userId, String id) throws 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.IOException
Copyright © 2011–2024 Google. All rights reserved.