Class UsersResource.ThreadsResource
The "threads" collection of methods.
public class UsersResource.ThreadsResource
- Inheritance
-
UsersResource.ThreadsResource
- Inherited Members
Constructors
ThreadsResource(IClientService)
Constructs a new resource.
public ThreadsResource(IClientService service)
Parameters
service
IClientService
Methods
Delete(string, string)
Immediately and permanently deletes the specified thread. This operation cannot be undone.
Prefer threads.trash
instead.
public virtual UsersResource.ThreadsResource.DeleteRequest Delete(string userId, string id)
Parameters
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.id
stringID of the Thread to delete.
Returns
Get(string, string)
Gets the specified thread.
public virtual UsersResource.ThreadsResource.GetRequest Get(string userId, string id)
Parameters
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.id
stringThe ID of the thread to retrieve.
Returns
List(string)
Lists the threads in the user's mailbox.
public virtual UsersResource.ThreadsResource.ListRequest List(string userId)
Parameters
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.
Returns
Modify(ModifyThreadRequest, string, string)
Modifies the labels applied to the thread. This applies to all messages in the thread.
public virtual UsersResource.ThreadsResource.ModifyRequest Modify(ModifyThreadRequest body, string userId, string id)
Parameters
body
ModifyThreadRequestThe body of the request.
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.id
stringThe ID of the thread to modify.
Returns
Trash(string, string)
Moves the specified thread to the trash.
public virtual UsersResource.ThreadsResource.TrashRequest Trash(string userId, string id)
Parameters
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.id
stringThe ID of the thread to Trash.
Returns
Untrash(string, string)
Removes the specified thread from the trash.
public virtual UsersResource.ThreadsResource.UntrashRequest Untrash(string userId, string id)
Parameters
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.id
stringThe ID of the thread to remove from Trash.